contrib/arpon/Pkgfile

27 lines
797 B
Plaintext

# Description: daemon and tools to handle all ARP aspects
# URL: http://arpon.sf.net
# Maintainer: Thomas Penteker, tek at serverop dot de
# Depends on: cmake libdnet
name=arpon
version=3.0-ng
release=1
source=(http://download.sourceforge.net/$name/ArpON-$version.tar.gz
arpon
# https://aur.archlinux.org/cgit/aur.git/tree/?h=arpon-ng
arpon-gcc7.patch arpon-syslog.patch)
build() {
install arpon -D $PKG/etc/rc.d/arpon
patch -Np2 -d ArpON-$version -i $SRC/arpon-gcc7.patch
patch -Np2 -d ArpON-$version -i $SRC/arpon-syslog.patch
cmake -SArpON-$version -Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS="-Wno-error=stringop-truncation"
cmake --build build
DESTDIR=$PKG cmake --install build
rm -r $PKG/usr/share/doc
}