diff options
author | davidovski <david@davidovski.xyz> | 2021-10-06 17:19:20 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-10-06 17:19:20 +0100 |
commit | 0a31fc2a959ea1230d07cfd837f5a9a945a7f80a (patch) | |
tree | 4c9aef911135753e8cdffd849c3d071167886168 /repo/core/bzip2.xibuild |
Initial commit, added core packages
Diffstat (limited to 'repo/core/bzip2.xibuild')
-rw-r--r-- | repo/core/bzip2.xibuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/repo/core/bzip2.xibuild b/repo/core/bzip2.xibuild new file mode 100644 index 0000000..d674a5d --- /dev/null +++ b/repo/core/bzip2.xibuild @@ -0,0 +1,38 @@ +#!/bin/bash + +DEPS=(glibc sh) + +SOURCE=git://sourceware.org/git/bzip2.git +DESC="a selection of programs for compressing and decompressing bzip2 files" + + +build () { + + # ensure symbolic links are relative + sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile + + make -f Makefile-libbz2_so + make clean + + make + + make PREFIX=$PKG_DEST/usr install + +} + +package () { + cp -av libbz2.so* $PKG_DEST/usr/lib + cp -av libbz2.so.1.0.8 $PKG_DEST/usr/lib/libbz2.so + + cp -v bzip2-shared $PKG_DEST/usr/bin/bzip2 + for i in $PKG_DEST/usr/bin/{bzcat,bunzip2}; do + cp -afv bzip2 $i + done + + # remove a useless static library + cp -v bzip2-shared $PKG_DEST/usr/bin/bzip2 + for i in $PKG_DEST/usr/bin/{bzcat,bunzip2}; do + ln -sfv bzip2 $i + done +} + |