blob: 338f61155fe3351bfd048ef87a70dabc6f0fc09b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $Id: PKGBUILD 207393 2017-01-14 18:17:11Z seblu $
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>
pkgname=rblcheck
pkgver=1.5
pkgrel=3
pkgdesc='Tool to query RBL servers'
arch=('i686' 'x86_64')
url='https://github.com/logic/rblcheck'
license=('GPL2')
depends=('glibc' 'bash')
makedepends=('git')
backup=('etc/rblcheckrc')
source=("git+https://github.com/logic/rblcheck.git#tag=rblcheck-$pkgver"
'01-change-filename-tags-for-directories.patch'
'02-fix-configure.patch'
'03-custom-rbl.patch'
'04-fix-missing-include.patch')
md5sums=('SKIP'
'9e8ed44f4bc6abf235a14065b6aa373c'
'ef71fccbf229eafc7ff6df57de2511ea'
'a9bc3e8a9b13adc20dfc40052a3ab367'
'ccc95fb87a4192d4a0ddb36cd5df0a36')
prepare() {
cd $pkgname
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
msg2 "Applying patch ${filename##*/}"
patch -p1 -N -i "$srcdir/${filename##*/}"
fi
done
:
}
build() {
cd $pkgname
./bootstrap
./configure --prefix=/usr --sysconfdir=/etc
make
}
package() {
cd $pkgname
make DESTDIR="$pkgdir" install
install -Dm 644 /dev/null "$pkgdir/etc/rblcheckrc"
}
# vim:set ts=2 sw=2 et:
|