summaryrefslogtreecommitdiff
path: root/repo/system/bzip2
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
committerdavidovski <david@davidovski.xyz>2022-05-04 23:52:30 +0100
commit739c65c54cb0e957df5e9b76f93fb02554e5cac3 (patch)
tree09ddfa0a342f3ea9de136cb50abdd79821bf1b53 /repo/system/bzip2
parent4c585ad54388285500fd18a6aaa516894e0f2c16 (diff)
moved everything to new file formatting
Diffstat (limited to 'repo/system/bzip2')
-rw-r--r--repo/system/bzip2/bzip2.xibuild38
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/system/bzip2/bzip2.xibuild b/repo/system/bzip2/bzip2.xibuild
new file mode 100644
index 0000000..d0d42f6
--- /dev/null
+++ b/repo/system/bzip2/bzip2.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+MAKEDEPS="make "
+DEPS="musl sh"
+
+PKG_VER=1.0.8
+SOURCE=git://sourceware.org/git/bzip2.git
+BRANCH=bzip2-$PKG_VER
+DESC="a selection of programs for compressing and decompressing bzip2 files"
+
+
+prepare () {
+
+ # ensure symbolic links are relative
+ sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
+}
+
+build () {
+ make -f Makefile-libbz2_so
+ make clean
+ make
+}
+
+package () {
+ make PREFIX=$PKG_DEST/usr install
+
+ cp -a libbz2.so* $PKG_DEST/usr/lib
+ cp -a libbz2.so.$PKG_VER $PKG_DEST/usr/lib/libbz2.so
+
+ cp bzip2-shared $PKG_DEST/usr/bin/bzip2
+ for i in $PKG_DEST/usr/bin/bzcat $PKG_DEST/usr/bin/bunzip2; do
+ ln -sf bzip2 $i
+ done
+
+ # remove a useless static library
+ rm -f $PKG_DEST/usr/lib/libbz2.a
+}
+