summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Kylie McClain <somasissounds@gmail.com> 2015-03-16 15:33:57 -0400
committerAvatar Kylie McClain <somasissounds@gmail.com> 2015-03-16 20:23:50 -0400
commit1173a9470d57ebdca39be8c0c4b2cdaba6a9bf05 (patch)
treece51b2ef7f0ed182394a6da535fc2fa66cbb89b1
parent5ee326dfbc68b82c4c092e5dbd7c53da10ad7023 (diff)
downloadpipping-pre-cross.tar.gz
pipping-pre-cross.tar.xz
pigz: 2.2.5 -> 2.3.3, use alternativespre-cross
Change-Id: Iac87c59bdb5a15869c2ab4643cf7ab35b633b5fd
-rw-r--r--packages/app-arch/pigz/pigz-2.2.5.exheres-018
-rw-r--r--packages/app-arch/pigz/pigz-2.3.3.exheres-030
2 files changed, 30 insertions, 18 deletions
diff --git a/packages/app-arch/pigz/pigz-2.2.5.exheres-0 b/packages/app-arch/pigz/pigz-2.2.5.exheres-0
deleted file mode 100644
index dd30b89..0000000
--- a/packages/app-arch/pigz/pigz-2.2.5.exheres-0
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright 2012 Elias Pipping <pipping@exherbo.org>
-# Distributed under the terms of the GNU General Public License v2
-
-SUMMARY="Parallel implementation of gzip"
-HOMEPAGE="http://www.zlib.net/${PN}"
-DOWNLOADS="${HOMEPAGE}/${PNV}.tar.gz"
-
-LICENCES="ZLIB"
-SLOT="0"
-PLATFORMS="~amd64"
-MYOPTIONS=""
-
-src_install() {
- dobin ${PN}
- doman ${PN}.1
- dodoc README ${PN}.pdf
-}
-
diff --git a/packages/app-arch/pigz/pigz-2.3.3.exheres-0 b/packages/app-arch/pigz/pigz-2.3.3.exheres-0
new file mode 100644
index 0000000..0ca8068
--- /dev/null
+++ b/packages/app-arch/pigz/pigz-2.3.3.exheres-0
@@ -0,0 +1,30 @@
+# Copyright 2012 Elias Pipping <pipping@exherbo.org>
+# Copyright 2015 Kylie McClain <somasissounds@gmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+require alternatives
+
+SUMMARY="Parallel implementation of gzip"
+HOMEPAGE="http://www.zlib.net/${PN}"
+DOWNLOADS="${HOMEPAGE}/${PNV}.tar.gz"
+
+LICENCES="ZLIB"
+SLOT="0"
+PLATFORMS="~amd64"
+MYOPTIONS=""
+
+src_install() {
+ # gzip uses /bin so we should probably follow suit
+ edo mkdir "${IMAGE}/bin"
+ edo mv ${PN} "${IMAGE}/bin"
+ dosym "/bin/${PN}" "/bin/unpigz"
+
+ doman ${PN}.1
+ dodoc README ${PN}.pdf
+
+ alternatives_for "gzip" "${PN}" "50" \
+ "/bin/gzip" "${PN}" \
+ "/bin/gunzip" "unpigz" \
+ "/usr/share/man/man1/gzip.1" "${PN}.1"
+}
+