[arch-commits] Commit in bzip2/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Mon Jul 15 11:57:20 UTC 2019


    Date: Monday, July 15, 2019 @ 11:57:19
  Author: arojas
Revision: 358019

archrelease: copy trunk to testing-x86_64

Added:
  bzip2/repos/testing-x86_64/
  bzip2/repos/testing-x86_64/PKGBUILD
    (from rev 358018, bzip2/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: bzip2/repos/testing-x86_64/PKGBUILD (from rev 358018, bzip2/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-07-15 11:57:19 UTC (rev 358019)
@@ -0,0 +1,52 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Judd <jvinet at zeroflux.org> 
+
+pkgname=bzip2
+pkgver=1.0.8
+pkgrel=2
+pkgdesc="A high-quality data compression program"
+arch=('x86_64')
+license=('custom')
+url="https://sourceware.org/bzip2/"
+groups=('base')
+depends=('glibc' 'sh')
+source=(https://sourceware.org/pub/bzip2/$pkgname-$pkgver.tar.gz{,.sig})
+sha256sums=('ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269'
+            'SKIP')
+validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard <mark at klomp.org>
+        
+build() {
+  cd $pkgname-$pkgver
+
+  make -f Makefile-libbz2_so CC="gcc $CFLAGS $LDFLAGS"
+  make bzip2 bzip2recover CC="gcc $CFLAGS $LDFLAGS"
+}
+
+check() {
+  cd $pkgname-$pkgver
+  make test
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  install -dm755 "$pkgdir"/usr/{bin,lib,include,share/man/man1}
+
+  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
+
+  cp -a libbz2.so* "$pkgdir"/usr/lib
+  ln -s libbz2.so.$pkgver "$pkgdir"/usr/lib/libbz2.so
+  ln -s libbz2.so.$pkgver "$pkgdir"/usr/lib/libbz2.so.1 # For compatibility with some other distros
+
+  install -m644 bzlib.h "$pkgdir"/usr/include/
+
+  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
+
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
+}


More information about the arch-commits mailing list