pkgs/bzip2/PKGBUILD

36 lines
896 B
Text
Raw Permalink Normal View History

2023-12-05 04:47:04 +00:00
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=bzip2
pkgver=1.0.8
pkgrel=1
pkgdesc="A high-quality data compression program"
2023-12-08 02:05:38 +00:00
arch=("x86_64")
2023-12-05 04:47:04 +00:00
url="https://sourceware.org/bzip2/"
2023-12-08 02:05:38 +00:00
license=("BSD")
source=("https://sourceware.org/pub/bzip2/$pkgname-$pkgver.tar.gz")
sha256sums=("ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269")
2023-12-05 04:47:04 +00:00
build() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-11 13:18:00 +00:00
make CC=cc -f Makefile-libbz2_so
make CC=cc
2023-12-05 04:47:04 +00:00
}
package() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
make install PREFIX=$pkgdir/usr
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
# Fix symlinks
rm $pkgdir/usr/bin/bz{cmp,egrep,fgrep,less}
ln -s bzdiff $pkgdir/usr/bin/bzcmp
ln -s bzgrep $pkgdir/usr/bin/bzegrep
ln -s bzgrep $pkgdir/usr/bin/bzfgrep
ln -s bzmore $pkgdir/usr/bin/bzless
2023-12-05 04:47:04 +00:00
2023-12-08 02:05:38 +00:00
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
2023-12-05 04:47:04 +00:00
}