summaryrefslogtreecommitdiff
path: root/libre/unp/PKGBUILD
blob: e07487f9b870fe444da05d79d17a935ded835b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 116352 2014-07-25 17:05:00Z anatolik $
# Maintainer (Arch): Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor (Arch): Michael Düll <mail@akurei.me> PGP-Key: AAAEE882
# Contributor (Arch): TDY <tdy@gmx.com>
# Contributor (Arch): Sergio Rubio <rubiojr.ml@gmail.com>
# Contributor (Arch): Hannes Rist <cowider@gmail.com>
# Maintainer: André Silva <emulatorman@hyperbola.info>
 
pkgname=unp
pkgver=2.0~pre7+nmu1
pkgrel=2.parabola1
pkgdesc='A script for unpacking a wide variety of archive formats, without nonfree unace, unarj and unrar recommendation'
arch=(any)
url='http://packages.qa.debian.org/u/unp.html'
license=(GPL)
depends=(perl)
optdepends=(
  'unzip: zip support'
  'bzip2: bzip2 support'
  'p7zip: p7zip support'
  'cpio: cpio support'
  'sharutils: sharutils'
  'cabextract: cab support'
  'rpmextract: rpm support'
)
source=(http://ftp.debian.org/debian/pool/main/u/unp/unp_$pkgver.tar.bz2
        libre.patch)
sha1sums=('b91f4cbc4720b3aace147652ac2043cf74668244'
          '202375dd1c013c798d0d61ab5c273be8ebe1c546')

prepare() {
  cd unp-$pkgver
  patch -Np1 -i "$srcdir"/libre.patch
}

build() {
  cd unp-$pkgver/po
  make
}
 
package() {
  cd unp-$pkgver
  install -Dm755 unp "$pkgdir"/usr/bin/unp
  install -Dm755 ucat "$pkgdir"/usr/bin/ucat
  install -Dm644 debian/unp.1 "$pkgdir"/usr/share/man/man1/unp.1
  install -Dm755 bash_completion.d/unp "$pkgdir"/etc/bash_completion.d/unp.sh

  cd po
  make DESTDIR="$pkgdir" install
}