summaryrefslogtreecommitdiff
path: root/repo/system/bzip2.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
committerdavidovski <david@davidovski.xyz>2022-01-16 15:02:47 +0000
commit003727289cc45e29eff0c0c48ad0f9660f96644f (patch)
tree0fd7f0ac830dee29984262980b8c144e26aa09ba /repo/system/bzip2.xibuild
parentd2d97f84d5c037d7a6b8db6c497a5987030b7335 (diff)
separated patch, build, check and package stages
Diffstat (limited to 'repo/system/bzip2.xibuild')
-rw-r--r--repo/system/bzip2.xibuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/repo/system/bzip2.xibuild b/repo/system/bzip2.xibuild
index f01a6b7..fc2e887 100644
--- a/repo/system/bzip2.xibuild
+++ b/repo/system/bzip2.xibuild
@@ -8,7 +8,7 @@ BRANCH=bzip2-$PKG_VER
DESC="a selection of programs for compressing and decompressing bzip2 files"
-build () {
+patch () {
#curl https://www.linuxfromscratch.org/patches/lfs/development/bzip2-$PKG_VER-install_docs-1.patch > bzip2-$PKG_VER-install_docs-1.patch
#patch -Np1 -i bzip2-$PKG_VER-install_docs-1.patch
@@ -18,16 +18,17 @@ build () {
sed -i 's@\(ln -s -f \)$(PREFIX)/bin/@\1@' Makefile
#sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
+}
+build () {
make -f Makefile-libbz2_so
make clean
-
make
- make PREFIX=$PKG_DEST/usr install
-
}
package () {
+ make PREFIX=$PKG_DEST/usr install
+
cp -av libbz2.so* $PKG_DEST/usr/lib
cp -av libbz2.so.$PKG_VER $PKG_DEST/usr/lib/libbz2.so