mirror of
https://github.com/pygos/build.git
synced 2024-11-13 06:57:11 +01:00
David Oberhollenzer
55463cf428
- crt-dev is a dependency of toolchain - basefiles is a dependency of toolchain - libstdc++ is (now also) a dependency of toolchain This commit removes direct build dependencies to the above and replacest them with dependencies to the toolchain package. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
28 lines
641 B
Text
Executable file
28 lines
641 B
Text
Executable file
VERSION="1.9.0"
|
|
SRCDIR="libpcap-${VERSION}"
|
|
TARBALL="${SRCDIR}.tar.gz"
|
|
URL="http://www.tcpdump.org/release/"
|
|
SHA256SUM="2edb88808e5913fdaa8e9c1fcaf272e19b2485338742b5074b9fe44d68f37019"
|
|
DEPENDS="libnl3-dev toolchain"
|
|
SUBPKG="libpcap libpcap-dev"
|
|
|
|
prepare() {
|
|
apply_patches
|
|
}
|
|
|
|
build() {
|
|
cp -r ${1}/* ${PKGBUILDDIR}
|
|
sed -i "s#/usr/include/libnl3#$TCDIR/$TARGET/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"
|
|
}
|