2018-01-15 01:06:52 +01:00
|
|
|
VERSION="1.0.6"
|
|
|
|
SRCDIR="bzip2-${VERSION}"
|
2018-08-31 18:27:10 +02:00
|
|
|
TARBALL="bzip2_${VERSION}.orig.tar.bz2"
|
|
|
|
URL="https://snapshot.debian.org/archive/debian/20111204T160411Z/pool/main/b/bzip2"
|
|
|
|
SHA256SUM="d70a9ccd8bdf47e302d96c69fecd54925f45d9c7b966bb4ef5f56b770960afa7"
|
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
|
|
|
|
2018-10-20 19:27:23 +02:00
|
|
|
local cflags="-O2 -Os"
|
2018-10-19 13:02:06 +02:00
|
|
|
local ldflags=""
|
|
|
|
|
|
|
|
if [ "x$TC_HARDENING" = "xyes" ]; then
|
2019-01-08 15:34:51 +01:00
|
|
|
cflags="$cflags -fstack-protector-all -fPIE -fPIC"
|
|
|
|
ldflags="$ldflags -z noexecstack -z relro -z now -fPIE -fPIC"
|
2018-10-19 13:02:06 +02:00
|
|
|
fi
|
2018-10-14 18:47:20 +02:00
|
|
|
|
|
|
|
make CFLAGS="-Wall -Winline -O2 -D_FILE_OFFSET_BITS=64 $cflags" \
|
|
|
|
LDFLAGS="$ldflags" CC=${TARGET}-gcc AR=${TARGET}-ar \
|
|
|
|
RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
|
2018-01-15 01:06:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2018-01-15 01:06:52 +01:00
|
|
|
|
|
|
|
make PREFIX="$DEPLOY" install
|
|
|
|
|
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-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2018-01-15 01:06:52 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
2018-08-31 18:27:10 +02:00
|
|
|
return
|
2018-10-14 18:47:20 +02:00
|
|
|
}
|