upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / ipguard / trunk / PKGBUILD
blob5d4305fdd5d11a0489188c9eae855b660d809284
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 pkgname=ipguard
5 pkgver=1.04
6 pkgrel=7
7 pkgdesc="ipguard - arp<->ip relation checking tool"
8 arch=(x86_64)
9 url="http://ipguard.deep.perm.ru/"
10 license=("GPL")
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')
21 prepare() {
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
28 build() {
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
34 package() {
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/