summaryrefslogtreecommitdiff
path: root/libre/unp
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-19 04:22:21 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-19 06:37:38 -0300
commita41018125d32a20b644ff10836d1e737cd0dfa67 (patch)
treeffa3b3836385f0d875d3988d75b5396ae8628b69 /libre/unp
parentc63176dc33a16c7f0dbccf1f3e03da25de508f09 (diff)
unp: add new package to [libre] -> https://labs.parabola.nu/issues/715
Diffstat (limited to 'libre/unp')
-rw-r--r--libre/unp/PKGBUILD50
-rw-r--r--libre/unp/libre.patch60
2 files changed, 110 insertions, 0 deletions
diff --git a/libre/unp/PKGBUILD b/libre/unp/PKGBUILD
new file mode 100644
index 000000000..fe4b53c47
--- /dev/null
+++ b/libre/unp/PKGBUILD
@@ -0,0 +1,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@parabola.nu>
+
+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
+}
diff --git a/libre/unp/libre.patch b/libre/unp/libre.patch
new file mode 100644
index 000000000..e459ce209
--- /dev/null
+++ b/libre/unp/libre.patch
@@ -0,0 +1,60 @@
+diff -Nur unp-2.0~pre7+nmu1.orig/unp unp-2.0~pre7+nmu1/unp
+--- unp-2.0~pre7+nmu1.orig/unp 2011-03-23 17:07:18.000000000 -0300
++++ unp-2.0~pre7+nmu1/unp 2015-05-19 04:13:37.929971649 -0300
+@@ -214,11 +214,6 @@
+ [ 'archmage']
+ ],
+
+- [ gettext("rar or unrar or unrar-free"), "rar", "RAR.*archive", 0,
+- [ "rar", "x" ],
+- [ "unrar", "x" ]
+- ]
+- ,
+ [ "binutils", "ar|deb", "(Debian binary package|\ ar.*archive)", 0,
+ [ "ar", "-x", "-v" ]
+ ]
+@@ -231,11 +226,6 @@
+ [ "lha", "x" ]
+ ]
+ ,
+- [ "arj", "arj", "ARJ.*archive", 0,
+- [ "arj", "x" ],
+- [ "unarj", "x" ],
+- ]
+- ,
+ [ "ppmd", "pmd", "PPmd.*archive", 0,
+ [ "PPMd", "x" ]
+ ]
+@@ -264,18 +254,10 @@
+ [ "cabextract" ]
+ ]
+ ,
+- [ "unace", "ace", "ACE.*archive", 0,
+- [ "unace", "e" ]
+- ]
+- ,
+ [ "xdms", "dms", "DMS.*archive", 0,
+ [ "xdms", "x" ]
+ ]
+ ,
+- [ "unlzx", "lzx", "LZX.*archive", 0,
+- [ "unace", "e" ]
+- ]
+- ,
+ [ "macutils", "sea|sea\.bin", "SEA.*archive", 0,
+ [ "macutils", "-v" ]
+ ]
+@@ -284,12 +266,9 @@
+ [ "hexbin", "-v" ]
+ ]
+ ,
+- [ "maybe orange or unzip or unrar or unarj or lha ", "exe", "executable", 3,
++ [ "maybe orange or unzip or lha ", "exe", "executable", 3,
+ [ "orange" ],
+ [ "unzip" ],
+- [ "unrar", "x" ],
+- [ "rar", "x" ],
+- [ "arj", "x" ],
+ [ "lha", "x" ]
+ ]
+