Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: bzip2 1.0.8-4: include pkgconfig file and respect CPPFLAGS
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-packages/svn@399184 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
anthraxx committed Nov 2, 2020
1 parent 9e41784 commit e2cc080
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
26 changes: 18 additions & 8 deletions trunk/PKGBUILD
@@ -1,24 +1,33 @@
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Judd <jvinet@zeroflux.org>
# Contributor: Judd <jvinet@zeroflux.org>

pkgname=bzip2
pkgver=1.0.8
pkgrel=3
pkgrel=4
pkgdesc="A high-quality data compression program"
arch=('x86_64')
license=('custom')
license=('BSD')
url="https://sourceware.org/bzip2/"
depends=('glibc' 'sh')
source=(https://sourceware.org/pub/bzip2/$pkgname-$pkgver.tar.gz{,.sig})
provides=('libbz2.so')
source=(https://sourceware.org/pub/bzip2/$pkgname-$pkgver.tar.gz{,.sig}
bzip2.pc)
sha256sums=('ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269'
'SKIP')
'SKIP'
'eca9d8cd6376df1fb5442667c603032023fb21d8d183684550da0b96ade39654')
validpgpkeys=('EC3CFE88F6CA0788774F5C1D1AA44BE649DE760A') # Mark Wielaard <mark@klomp.org>


prepare() {
cd $pkgname-$pkgver
cp ../bzip2.pc bzip2.pc
sed "s|@VERSION@|$pkgver|" -i bzip2.pc
}

build() {
cd $pkgname-$pkgver

make -f Makefile-libbz2_so CC="gcc $CFLAGS $LDFLAGS"
make bzip2 bzip2recover CC="gcc $CFLAGS $LDFLAGS"
make -f Makefile-libbz2_so CC="gcc $CFLAGS $CPPFLAGS $LDFLAGS"
make bzip2 bzip2recover CC="gcc $CFLAGS $CPPFLAGS $LDFLAGS"
}

check() {
Expand Down Expand Up @@ -47,5 +56,6 @@ package() {
ln -sf bzip2.1 "$pkgdir"/usr/share/man/man1/bzcat.1
ln -sf bzip2.1 "$pkgdir"/usr/share/man/man1/bzip2recover.1

install -Dm644 bzip2.pc -t "$pkgdir"/usr/lib/pkgconfig
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
11 changes: 11 additions & 0 deletions trunk/bzip2.pc
@@ -0,0 +1,11 @@
prefix=/usr
exec_prefix=/usr
bindir=${exec_prefix}/bin
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: bzip2
Description: A file compression library
Version: @VERSION@
Libs: -L${libdir} -lbz2
Cflags: -I${includedir}

0 comments on commit e2cc080

Please sign in to comment.