mirror of
https://github.com/pygos/build.git
synced 2024-11-14 23:47:11 +01:00
David Oberhollenzer
1a697b336f
Use a seperate sysroot directory (stored in variable SYSROOT) instead of installing everything into the toolchain directory. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
28 lines
634 B
Text
Executable file
28 lines
634 B
Text
Executable file
VERSION="1.9.1"
|
|
SRCDIR="libpcap-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
URL="http://www.tcpdump.org/release/"
|
|
SHA256SUM="635237637c5b619bcceba91900666b64d56ecb7be63f298f601ec786ce087094"
|
|
DEPENDS="libnl3-dev toolchain"
|
|
SUBPKG="libpcap libpcap-dev"
|
|
|
|
prepare() {
|
|
apply_patches
|
|
}
|
|
|
|
build() {
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
sed -i "s#/usr/include/libnl3#$SYSROOT/include/libnl3#g" configure
|
|
|
|
run_configure "." --with-pcap=linux --enable-ipv6
|
|
make -j $NUMJOBS
|
|
}
|
|
|
|
deploy() {
|
|
make DESTDIR="$PKGDEPLOYDIR" install
|
|
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
|
|
}
|
|
|
|
check_update() {
|
|
check_update_simple "$URL" "libpcap" "tar.gz"
|
|
}
|