aboutsummaryrefslogtreecommitdiffstats
path: root/PKGBUILD
blob: 481666b8cf1fea8fd951ea09f56a6e30662b04d8 (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
pkgname=dkimproxy
pkgver=1.4.1
pkgrel=5

pkgdesc="An SMTP-proxy that signs and/or verifies emails, using the Mail::DKIM module."
url="http://dkimproxy.sourceforge.net/"
arch=('i686' 'x86_64')
license=('GPL')

depends=('perl-mail-dkim' 'perl-net-server' 'perl-error')

options=('!emptydirs')

install=$pkgname.install
source=("http://downloads.sourceforge.net/dkimproxy/dkimproxy-$pkgver.tar.gz"
        'dkimproxy_in.service' 'dkimproxy_out.service')

sha256sums=('e5345a1d3cefd32d1fb0face9fa73490118132767253b0ce643463f1e86185bd'
            'aee1890b21ef326ac4691a73f46508319c428f2b1f618ec64e9ccbc4b95f8844'
            '5ec4cd130e0cf55ae9b548f76ee7d1ca615592f651152dcfd984a7bcdbbfd7d6')

build() {
	cd dkimproxy-$pkgver
	./configure --prefix=/usr --sysconfdir=/etc/dkimproxy
	make
}

package() {
	cd dkimproxy-$pkgver
	make install DESTDIR="$pkgdir"
	install -Dm644 ../dkimproxy_in.service "$pkgdir/usr/lib/systemd/system/dkimproxy_in.service"
	install -Dm644 ../dkimproxy_out.service "$pkgdir/usr/lib/systemd/system/dkimproxy_out.service"
}