mirror of
https://github.com/pygos/build.git
synced 2024-12-23 23:50:51 +01:00
Add expat package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
70babae4f3
commit
45b9ddce17
2 changed files with 36 additions and 0 deletions
35
pkg/expat/build
Normal file
35
pkg/expat/build
Normal file
|
@ -0,0 +1,35 @@
|
|||
VERSION="R_2_2_5"
|
||||
SRCDIR="libexpat-${VERSION}/expat"
|
||||
TARBALL="${VERSION}.tar.gz"
|
||||
URL="https://github.com/libexpat/libexpat/archive"
|
||||
SHA256SUM="b3781742738611eaa737543ee94264dd511c52a3ba7e53111f7d705f6bff65a8"
|
||||
|
||||
prepare() {
|
||||
autoreconf --force --install --symlink
|
||||
}
|
||||
|
||||
build() {
|
||||
local SOURCE="$1"
|
||||
local BUILD="$2"
|
||||
|
||||
$SOURCE/configure --prefix="" --host="$TARGET" --disable-static \
|
||||
--without-xmlwf --with-libbsd
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
deploy() {
|
||||
local SOURCE="$1"
|
||||
local BUILD="$2"
|
||||
local DEPLOY="$3"
|
||||
local DEVDEPLOY="$4"
|
||||
|
||||
make DESTDIR="$DEPLOY" install-strip
|
||||
|
||||
rm ${DEPLOY}/lib/*.la
|
||||
|
||||
mv "$DEPLOY/include" "$DEVDEPLOY"
|
||||
rm -r "$DEPLOY/share"
|
||||
cp -r "$DEPLOY/lib" "$DEVDEPLOY"
|
||||
rm -r "$DEPLOY/lib/pkgconfig"
|
||||
}
|
1
pkg/expat/depends
Normal file
1
pkg/expat/depends
Normal file
|
@ -0,0 +1 @@
|
|||
libbsd
|
Loading…
Reference in a new issue