1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-07-01 15:30:13 +02:00
build/pkg/bzip2/build
David Oberhollenzer ab17c95cf9 Redirect bzip2 URL
The domain bzip2.org has expired and is now held by someone placing ads.

Aparently bzip2 development is pretty dead for now.

Redirect source URL to the debian snapshot archive.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-08-31 18:41:07 +02:00

35 lines
820 B
Plaintext
Executable file

VERSION="1.0.6"
SRCDIR="bzip2-${VERSION}"
TARBALL="bzip2_${VERSION}.orig.tar.bz2"
URL="https://snapshot.debian.org/archive/debian/20111204T160411Z/pool/main/b/bzip2"
SHA256SUM="d70a9ccd8bdf47e302d96c69fecd54925f45d9c7b966bb4ef5f56b770960afa7"
DEPENDS="toolchain"
prepare() {
return
}
build() {
cp -r ${1}/* ${PKGBUILDDIR}
make CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
}
deploy() {
local SOURCE="$1"
local DEPLOY="$2"
make PREFIX="$DEPLOY" install
rm ${DEPLOY}/bin/{bzegrep,bzfgrep,bzless,bzcmp}
ln -s "/bin/bzgrep" "$DEPLOY/bin/bzegrep"
ln -s "/bin/bzgrep" "$DEPLOY/bin/bzfgrep"
ln -s "/bin/bzmore" "$DEPLOY/bin/bzless"
ln -s "/bin/bzdiff" "$DEPLOY/bin/bzcmp"
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
}
check_update() {
return
}