1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-14 23:47:11 +01:00
build/pkg/libpcap/build
David Oberhollenzer 1a697b336f Fix sysroot directory
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>
2020-04-07 03:28:21 +02:00

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"
}