2006-02-23 15:26:10 +00:00
|
|
|
# Description: Very high-quality data compression program
|
2018-08-10 19:44:44 +02:00
|
|
|
# URL: https://sourceware.org/bzip2/
|
2008-05-05 11:19:16 +02:00
|
|
|
# Maintainer: CRUX System Team, core-ports at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=bzip2
|
2019-07-17 19:35:16 +02:00
|
|
|
version=1.0.8
|
2021-08-05 19:39:08 +02:00
|
|
|
release=3
|
|
|
|
source=(https://sourceware.org/pub/bzip2/$name-$version.tar.gz
|
|
|
|
bzip2.pc.in)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
2006-04-09 17:07:34 +00:00
|
|
|
cd $name-$version
|
|
|
|
|
2021-08-05 19:39:08 +02:00
|
|
|
install -d $PKG/usr/{bin,lib/pkgconfig,include,share/man/man1}
|
2019-07-17 19:35:16 +02:00
|
|
|
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Makefile Makefile-libbz2_so
|
2006-04-09 17:07:34 +00:00
|
|
|
|
2019-07-17 19:35:16 +02:00
|
|
|
make -f Makefile-libbz2_so
|
|
|
|
|
|
|
|
install libbz2.so.$version $PKG/usr/lib
|
|
|
|
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so
|
2019-07-18 10:51:42 +02:00
|
|
|
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so.1.0
|
2019-07-17 19:35:16 +02:00
|
|
|
|
|
|
|
make clean
|
2006-04-09 17:07:34 +00:00
|
|
|
make
|
|
|
|
|
2019-07-17 19:35:16 +02:00
|
|
|
install -m 0755 bzip2 bzip2recover bzdiff bzgrep bzmore $PKG/usr/bin
|
|
|
|
ln -s bzip2 $PKG/usr/bin/bunzip2
|
|
|
|
ln -s bzip2 $PKG/usr/bin/bzcat
|
|
|
|
ln -s bzdiff $PKG/usr/bin/bzcmp
|
|
|
|
ln -s bzgrep $PKG/usr/bin/bzegrep
|
|
|
|
ln -s bzgrep $PKG/usr/bin/bzfgrep
|
|
|
|
ln -s bzmore $PKG/usr/bin/bzless
|
|
|
|
|
|
|
|
install -m 0644 libbz2.a $PKG/usr/lib
|
|
|
|
install -m 0644 bzlib.h $PKG/usr/include
|
|
|
|
install -m 0644 *.1 $PKG/usr/share/man/man1
|
2021-08-05 19:39:08 +02:00
|
|
|
|
|
|
|
sed "s/@VERSION@/$version/" $SRC/bzip2.pc.in > $PKG/usr/lib/pkgconfig/bzip2.pc
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|