[arch-commits] Commit in bzip2/trunk (PKGBUILD)

Allan McRae allan at archlinux.org
Sun Apr 29 08:15:26 UTC 2012


    Date: Sunday, April 29, 2012 @ 04:15:26
  Author: allan
Revision: 157764

upgpkg: bzip2 1.0.6-4

move files from /lib

Modified:
  bzip2/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++-----------------
 1 file changed, 13 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-04-29 07:02:42 UTC (rev 157763)
+++ PKGBUILD	2012-04-29 08:15:26 UTC (rev 157764)
@@ -4,7 +4,7 @@
 
 pkgname=bzip2
 pkgver=1.0.6
-pkgrel=3
+pkgrel=4
 pkgdesc="A high-quality data compression program"
 arch=('i686' 'x86_64')
 license=('custom')
@@ -40,26 +40,22 @@
 package() {
   cd "$srcdir/$pkgname-$pkgver"
 
-  install -dm755 $pkgdir/bin
-  install -m755 bzip2-shared $pkgdir/bin/bzip2
-  install -m755 bzip2recover $pkgdir/bin
-  ln -sf bzip2 $pkgdir/bin/bunzip2
-  ln -sf bzip2 $pkgdir/bin/bzcat
+  install -dm755 $pkgdir/usr/{bin,lib,include,share/man/man1}
 
-  install -dm755 $pkgdir/usr/bin
-  install -m755 bzdiff bzgrep bzmore $pkgdir/usr/bin
+  install -m755 bzip2-shared $pkgdir/usr/bin/bzip2
+  install -m755 bzip2recover bzdiff bzgrep bzmore $pkgdir/usr/bin
+  ln -sf bzip2 $pkgdir/usr/bin/bunzip2
+  ln -sf bzip2 $pkgdir/usr/bin/bzcat
 
-  install -Dm755 libbz2.so.1.0.6 $pkgdir/lib/libbz2.so.1.0.6
-  ln -s libbz2.so.1.0.6 $pkgdir/lib/libbz2.so
-  ln -s libbz2.so.1.0.6 $pkgdir/lib/libbz2.so.1
-  ln -s libbz2.so.1.0.6 $pkgdir/lib/libbz2.so.1.0
+  install -m755 libbz2.so.1.0.6 $pkgdir/usr/lib
+  ln -s libbz2.so.1.0.6 $pkgdir/usr/lib/libbz2.so
+  ln -s libbz2.so.1.0.6 $pkgdir/usr/lib/libbz2.so.1
+  ln -s libbz2.so.1.0.6 $pkgdir/usr/lib/libbz2.so.1.0
+  install -m644 libbz2.a ${pkgdir}/usr/lib/libbz2.a
 
-  install -Dm644 libbz2.a ${pkgdir}/usr/lib/libbz2.a
-  ln -sf ../../lib/libbz2.so ${pkgdir}/usr/lib/libbz2.so
+  install -m644 bzlib.h $pkgdir/usr/include/
 
-  install -Dm644 bzlib.h $pkgdir/usr/include/bzlib.h
-
-  install -Dm644 bzip2.1 $pkgdir/usr/share/man/man1/bzip2.1
+  install -m644 bzip2.1 $pkgdir/usr/share/man/man1/
   ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bunzip2.1
   ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bzcat.1
   ln -sf bzip2.1 $pkgdir/usr/share/man/man1/bzip2recover.1




More information about the arch-commits mailing list