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"
|
2019-02-27 14:22:03 +01:00
|
|
|
SUBPKG="bzip2-dev bzip2"
|
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() {
|
2019-03-06 10:03:12 +01:00
|
|
|
make PREFIX="$PKGDEPLOYDIR" install
|
|
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
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
|
|
|
}
|