Skip to content

Commit

Permalink
bzip2: update to 1.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
sepen committed Jan 6, 2024
1 parent 16dfd1a commit 593d05a
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 0 deletions.
29 changes: 29 additions & 0 deletions bzip2/.footprint
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
lrwxrwxrwx root/root usr/bin/bunzip2 -> bzip2
lrwxrwxrwx root/root usr/bin/bzcat -> bzip2
lrwxrwxrwx root/root usr/bin/bzcmp -> bzdiff
-rwxr-xr-x root/root usr/bin/bzdiff
lrwxrwxrwx root/root usr/bin/bzegrep -> bzgrep
lrwxrwxrwx root/root usr/bin/bzfgrep -> bzgrep
-rwxr-xr-x root/root usr/bin/bzgrep
-rwxr-xr-x root/root usr/bin/bzip2
-rwxr-xr-x root/root usr/bin/bzip2recover
lrwxrwxrwx root/root usr/bin/bzless -> bzmore
-rwxr-xr-x root/root usr/bin/bzmore
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/bzlib.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libbz2.a
lrwxrwxrwx root/root usr/lib/libbz2.so -> libbz2.so.1.0.8
lrwxrwxrwx root/root usr/lib/libbz2.so.1.0 -> libbz2.so.1.0.8
-rwxr-xr-x root/root usr/lib/libbz2.so.1.0.8
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/bzip2.pc
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/bzdiff.1.gz
-rw-r--r-- root/root usr/share/man/man1/bzgrep.1.gz
-rw-r--r-- root/root usr/share/man/man1/bzip2.1.gz
-rw-r--r-- root/root usr/share/man/man1/bzmore.1.gz
2 changes: 2 additions & 0 deletions bzip2/.md5sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
67e051268d0c475ea773822f7500d0e5 bzip2-1.0.8.tar.gz
c9bb175c369834d27510119ff41fabf0 bzip2.pc.in
40 changes: 40 additions & 0 deletions bzip2/Pkgfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Description: Very high-quality data compression program
# URL: https://sourceware.org/bzip2/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu

name=bzip2
version=1.0.8
release=3
source=(https://sourceware.org/pub/bzip2/$name-$version.tar.gz
bzip2.pc.in)

build() {
cd $name-$version

install -d $PKG/usr/{bin,lib/pkgconfig,include,share/man/man1}
sed "/^CFLAGS/s/-O2/$CFLAGS/" -i Makefile Makefile-libbz2_so

make -f Makefile-libbz2_so

install libbz2.so.$version $PKG/usr/lib
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so
ln -s libbz2.so.$version $PKG/usr/lib/libbz2.so.1.0

make clean
make

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

sed "s/@VERSION@/$version/" $SRC/bzip2.pc.in > $PKG/usr/lib/pkgconfig/bzip2.pc
}
11 changes: 11 additions & 0 deletions bzip2/bzip2.pc.in
Original file line number Diff line number Diff line change
@@ -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 593d05a

Please sign in to comment.