mirror of
https://github.com/pygos/build.git
synced 2024-11-05 03:27:10 +01:00
Add bzip2 package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
112f2b823b
commit
0fe341f8ec
3 changed files with 48 additions and 0 deletions
|
@ -6,3 +6,4 @@ util-linux
|
|||
grep
|
||||
less
|
||||
gzip
|
||||
bzip2
|
||||
|
|
|
@ -9,3 +9,4 @@ kmod
|
|||
grep
|
||||
less
|
||||
gzip
|
||||
bzip2
|
||||
|
|
46
pkg/bzip2/build
Executable file
46
pkg/bzip2/build
Executable file
|
@ -0,0 +1,46 @@
|
|||
VERSION="1.0.6"
|
||||
SRCDIR="bzip2-${VERSION}"
|
||||
TARBALL="${SRCDIR}.tar.gz"
|
||||
URL="http://www.bzip.org/1.0.6/"
|
||||
SHA256SUM="a2848f34fcd5d6cf47def00461fcb528a0484d8edef8208d6d2e2909dc61d9cd"
|
||||
|
||||
prepare() {
|
||||
return
|
||||
}
|
||||
|
||||
build() {
|
||||
local SOURCE="$1"
|
||||
local BUILD="$2"
|
||||
|
||||
cp -r ${SOURCE}/* ${BUILD}
|
||||
|
||||
make CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib -j $NUMJOBS libbz2.a bzip2 bzip2recover
|
||||
}
|
||||
|
||||
deploy() {
|
||||
local SOURCE="$1"
|
||||
local BUILD="$2"
|
||||
local DEPLOY="$3"
|
||||
local DEVDEPLOY="$4"
|
||||
|
||||
make PREFIX="$DEPLOY" install
|
||||
|
||||
mv $DEPLOY/include $DEVDEPLOY
|
||||
mv $DEPLOY/lib $DEVDEPLOY
|
||||
rm -r $DEPLOY/man
|
||||
|
||||
${TARGET}-strip --discard-all ${DEPLOY}/bin/bunzip2
|
||||
${TARGET}-strip --discard-all ${DEPLOY}/bin/bzip2
|
||||
${TARGET}-strip --discard-all ${DEPLOY}/bin/bzip2recover
|
||||
${TARGET}-strip --discard-all ${DEPLOY}/bin/bzcat
|
||||
|
||||
rm "$DEPLOY/bin/bzegrep"
|
||||
rm "$DEPLOY/bin/bzfgrep"
|
||||
rm "$DEPLOY/bin/bzless"
|
||||
rm "$DEPLOY/bin/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"
|
||||
}
|
Loading…
Reference in a new issue