summaryrefslogtreecommitdiff
path: root/libre/unp/PKGBUILD
blob: 56699fc2b798be776d97765226fbb163cd72e649 (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
51
52
# Maintainer (arch): Anatol Pomozov <anatol.pomozov@gmail.com>
# Contributor: Michael Düll <mail@akurei.me> PGP-Key: AAAEE882
# Contributor: TDY <tdy@gmx.com>
# Contributor: Sergio Rubio <rubiojr.ml@gmail.com>
# Contributor: Hannes Rist <cowider@gmail.com>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
 
pkgname=unp
pkgver=2.0~pre7+nmu1
pkgrel=3
pkgrel+=.parabola1
pkgdesc='A script for unpacking a wide variety of archive formats'
pkgdesc+=', without nonfree unace, unarj and unrar recommendation'
arch=(any)
url='https://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"/usr/share/bash-completion/completions/unp

  cd po
  make DESTDIR="$pkgdir" install
}