2018-01-15 01:06:52 +01:00
|
|
|
VERSION="1.0.6"
|
|
|
|
SRCDIR="bzip2-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
|
|
URL="http://www.bzip.org/1.0.6/"
|
|
|
|
SHA256SUM="a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"
|
2018-02-15 23:47:54 +01:00
|
|
|
DEPENDS="toolchain"
|
2018-01-15 01:06:52 +01:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2018-02-16 23:22:04 +01:00
|
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
2018-01-15 01:06:52 +01:00
|
|
|
|
|
|
|
make CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
|
|
|
local DEVDEPLOY="$3"
|
2018-01-15 01:06:52 +01:00
|
|
|
|
|
|
|
make PREFIX="$DEPLOY" install
|
|
|
|
|
|
|
|
rm -r $DEPLOY/man
|
|
|
|
|
2018-02-15 14:24:53 +01:00
|
|
|
strip_files ${DEPLOY}/bin/*
|
2018-01-15 01:06:52 +01:00
|
|
|
|
2018-02-19 12:43:22 +01:00
|
|
|
rm ${DEPLOY}/bin/{bzegrep,bzfgrep,bzless,bzcmp}
|
2018-01-15 01:06:52 +01:00
|
|
|
|
|
|
|
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"
|
2018-02-10 01:57:53 +01:00
|
|
|
|
|
|
|
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
2018-02-17 14:47:42 +01:00
|
|
|
rmdir "$DEPLOY/lib"
|
2018-01-15 01:06:52 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o "bzip2-[0-9.]*tar.gz" | \
|
|
|
|
sed 's/bzip2-//g' | sed 's/.tar.gz//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|