blob: 42b708a6ec392b86656b541faae38d54da54e950 (
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
|
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: Carsten Feuls <archlinux@carstenfeuls.de>
pkgname=dovecot2-antispam-git
pkgver=2.0.r17.g713e9e9
pkgrel=2
pkgdesc="Integrates DSPAM into dovecot IMAP server. Git Version for dovecot >= 2.1"
arch=( 'i686' 'x86_64' )
url="https://git.sipsolutions.net/dovecot-antispam.git/"
license=('GPL')
depends=('dovecot>=2.2.0')
makedepends=('git')
conflicts=(dovecot-antispam)
provides=(dovecot-antispam)
source=('dovecot2-antispam-git::git+https://git.sipsolutions.net/dovecot-antispam.git')
sha512sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
# cutting off 'v' prefix that presents in the git tag
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$pkgname"
# Needed until dovecot 2.4.x
# See https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed04b7834d76977f8dcd7ace42ad8ede4a2a5f45
CFLAGS="-std=gnu17" make
}
package() {
cd "$srcdir/$pkgname"
mkdir -p "$pkgdir/usr/lib/dovecot/modules"
make INSTALLDIR="$pkgdir/usr/lib/dovecot/modules" install
}
|