1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
7 pkgdesc="ipguard - arp<->ip relation checking tool"
9 url="http://ipguard.deep.perm.ru/"
11 depends=(libpcap libnet)
12 source=(http://ipguard.deep.perm.ru/files/$pkgname-$pkgver.tar.gz
13 build-fix-le.patch pass-ldflags.patch)
14 md5sums=('7f44f7c31876f0d68792f02047e25409'
15 'b27cfc9e8ad4ef9459d7274a2e624831'
16 '4866f88e44fd806d545ec5191a41636b')
17 sha256sums=('95bf97ae2c58827e34d40daa7065c5107d39a67eb92e2164f7758846f43c41fe'
18 '0e79d40a0af92171796c1e36c650c402e27ee69cdf518792fc2fd1d963f842c9'
19 '5c2818b8318143c7f4443aaf136f9bfb1a26795b85845139ea8f862cf8a210ff')
22 cd "$srcdir"/$pkgname-$pkgver
23 patch -Np1 <../build-fix-le.patch
24 patch -Np1 <../pass-ldflags.patch
25 sed -i 's|$(PREFIX)/sbin|$(PREFIX)/bin|g' Makefile
29 cd "$srcdir"/$pkgname-$pkgver
30 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
31 LDFLAGS=${LDFLAGS} CFLAGS="${CFLAGS} -DLIBNET_LIL_ENDIAN" make
35 cd "$srcdir"/$pkgname-$pkgver
36 make PREFIX="$pkgdir"/usr install
37 mkdir -p "$pkgdir"/usr/share
38 mv "$pkgdir"/usr/man "$pkgdir"/usr/share/