[arch-commits] Commit in bzip2/repos (3 files)

Antonio Rojas arojas at archlinux.org
Sat Jun 29 09:37:12 UTC 2019


    Date: Saturday, June 29, 2019 @ 09:37:12
  Author: arojas
Revision: 357044

archrelease: copy trunk to testing-x86_64

Added:
  bzip2/repos/testing-x86_64/
  bzip2/repos/testing-x86_64/PKGBUILD
    (from rev 357043, bzip2/trunk/PKGBUILD)
  bzip2/repos/testing-x86_64/bzip2-ldflags.patch
    (from rev 357043, bzip2/trunk/bzip2-ldflags.patch)

---------------------+
 PKGBUILD            |   63 ++++++++++++++++++++++++++++++++++++++++++++++++++
 bzip2-ldflags.patch |   11 ++++++++
 2 files changed, 74 insertions(+)

Copied: bzip2/repos/testing-x86_64/PKGBUILD (from rev 357043, bzip2/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-06-29 09:37:12 UTC (rev 357044)
@@ -0,0 +1,63 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Judd <jvinet at zeroflux.org> 
+
+pkgname=bzip2
+pkgver=1.0.7
+pkgrel=1
+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}
+        bzip2-ldflags.patch)
+sha256sums=('e768a87c5b1a79511499beb41500bcc4caf203726fff46a6f5f9ad27fe08ab2b'
+            'SKIP'
+            'fd7b402b94d42a642bd13430bf489077017de3dbbef9fb4656ccb6fb3c751504')
+validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard <mark at klomp.org>
+        
+prepare() {
+  cd $pkgname-$pkgver
+
+  # use our optimization
+  sed -e "s|-O2|${CFLAGS}|g" -i Makefile*
+  # use our LDFLAGS
+  sed -e "s|LDFLAGS=|LDFLAGS=${LDFLAGS}|g" -i Makefile*
+  patch -p1 -i ../bzip2-ldflags.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+
+  make -f Makefile-libbz2_so
+  make bzip2 bzip2recover
+}
+
+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
+
+  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
+}

Copied: bzip2/repos/testing-x86_64/bzip2-ldflags.patch (from rev 357043, bzip2/trunk/bzip2-ldflags.patch)
===================================================================
--- testing-x86_64/bzip2-ldflags.patch	                        (rev 0)
+++ testing-x86_64/bzip2-ldflags.patch	2019-06-29 09:37:12 UTC (rev 357044)
@@ -0,0 +1,11 @@
+--- bzip2-1.0.7/Makefile-libbz2_so.orig	2019-06-29 09:08:21.186324313 +0000
++++ bzip2-1.0.7/Makefile-libbz2_so	2019-06-29 09:09:37.397240774 +0000
+@@ -35,7 +35,7 @@
+       bzlib.o
+ 
+ all: $(OBJS)
+-	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.7 $(OBJS)
++	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.7 $(OBJS) $(LDFLAGS)
+ 	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.7
+ 	rm -f libbz2.so.1.0
+ 	ln -s libbz2.so.1.0.7 libbz2.so.1.0



More information about the arch-commits mailing list