From 003727289cc45e29eff0c0c48ad0f9660f96644f Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 16 Jan 2022 15:02:47 +0000 Subject: separated patch, build, check and package stages --- repo/system/bzip2.xibuild | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'repo/system/bzip2.xibuild') 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 -- cgit v1.2.1