From a41018125d32a20b644ff10836d1e737cd0dfa67 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 19 May 2015 04:22:21 -0300 Subject: unp: add new package to [libre] -> https://labs.parabola.nu/issues/715 --- libre/unp/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++ libre/unp/libre.patch | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 libre/unp/PKGBUILD create mode 100644 libre/unp/libre.patch 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 +# Contributor (Arch): Michael Düll PGP-Key: AAAEE882 +# Contributor (Arch): TDY +# Contributor (Arch): Sergio Rubio +# Contributor (Arch): Hannes Rist +# Maintainer: André Silva + +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" ] + ] + -- cgit v1.2.3-54-g00ecf