1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00
build/pkg/libpcap/build
David Oberhollenzer fa4eff263b Cleanup: implement defaults for package functions
This commit adds an "emptypackage" template that implements defaults
for all package functions and is included before every package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2020-04-16 15:16:58 +02:00

24 lines
604 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"
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"
}