summaryrefslogtreecommitdiffstats
path: root/main/libspf2/APKBUILD
blob: 200e913564c4fdd1c00d53e0302ea355d368fe54 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libspf2
pkgver=1.2.9
pkgrel=8
pkgdesc="Sender Policy Framework library, a part of the SPF/SRS protocol pair."
url="http://www.libspf2.org"
arch="all"
license="LGPL-2.1 BSD-2"
subpackages="$pkgname-dev"
makedepends="autoconf automake libtool bind-dev"
depends=
source="http://www.libspf2.org/spf/libspf2-$pkgver.tar.gz
	libspf2-localpolicy-fix.patch
	0001-provide-dn_skipname.patch
	libspf2-libreplace-fix.patch
	libspf2-res_ninit-uclibc.patch
	automake.patch
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	libtoolize --force && aclocal && automake && autoconf && autoheader
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm "$pkgdir"/usr/lib/*.la
}
md5sums="3305df4d1b13ca964d80b23bb5e4e2b6  libspf2-1.2.9.tar.gz
dab7cc92ed1ff332e4fcfab95b8d35ea  libspf2-localpolicy-fix.patch
201889cbd209aa7cae9ce11ed5ebaaa6  0001-provide-dn_skipname.patch
6dd2d5f33c5f1a5b7c14eec4c71767cd  libspf2-libreplace-fix.patch
06c981fcca0434d447f8a2749b51696f  libspf2-res_ninit-uclibc.patch
4a83b623d8751e4049f3e68b3a074d21  automake.patch"