pkgs/bzip2/PKGBUILD

35 lines
884 B
Bash

# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=bzip2
pkgver=1.0.8
pkgrel=1
pkgdesc="A high-quality data compression program"
arch=("x86_64")
url="https://sourceware.org/bzip2/"
license=("BSD")
source=("https://sourceware.org/pub/bzip2/$pkgname-$pkgver.tar.gz")
sha256sums=("ab5a03176ee106d3f0fa90e381da478ddae405918153cca248e682cd0c4a2269")
build() {
cd $pkgname-$pkgver
make -f Makefile-libbz2_so
make
}
package() {
cd $pkgname-$pkgver
make install PREFIX=$pkgdir/usr
# 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
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
}