mirror of
https://github.com/pygos/build.git
synced 2024-11-24 20:10:42 +01:00
David Oberhollenzer
fa4eff263b
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>
24 lines
604 B
Text
Executable file
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"
|
|
}
|