archrelease: copy trunk to community-any
[ArchLinux/community.git] / spampd / trunk / PKGBUILD
blobfaf2f68129c36d5990c940cf4ef23bb7ef463c78
1 # Maintainer: Florian "Bluewind" Pritz <flo@xssn.at>
2 pkgname=spampd
3 pkgver=2.61
4 pkgrel=1
5 pkgdesc="Spamassassin Proxy Daemon"
6 arch=('any')
7 url="https://www.worlddesign.com/index.cfm/page/software/open-source/spampd.htm"
8 license=('GPL3')
9 depends=('perl' 'perl-net-server' 'spamassassin')
10 source=("$pkgname-$pkgver.tar.gz::https://github.com/mpaperno/spampd/archive/$pkgver.tar.gz"
11         spampd.service)
12 sha256sums=('91e60f10745ea4f9c27b9e57619a1bf246ab9a88ea1b88c4f39f8af607e2dbae'
13             '2bd1612761b07e6a613331b6448d4e0609c69aaf451707ddba1e1d9e1c0a35b6')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   pod2man spampd.pl | gzip -n -c > spampd.8.gz
21 package() {
22   cd "$srcdir/$pkgname-$pkgver"
24   install -Dm755 spampd.pl "$pkgdir/usr/bin/spampd"
25   install -Dm644 spampd.8.gz "$pkgdir/usr/share/man/man8/spampd.8.gz"
26   install -Dm644 "$srcdir/spampd.service" "$pkgdir/usr/lib/systemd/system/spampd.service"
28   printf "u spampd - - /var/lib/spampd\n" | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/spampd.conf"
29   printf "d /run/spampd 0700 spampd spampd -\n" | install -Dm644 /dev/stdin "$pkgdir/usr/lib/tmpfiles.d/spampd.conf"
32 # vim:set ts=2 sw=2 et: