summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3186a43e3002c226dbfc7eec25a29b33e16eec46 (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
# Maintainer: Jean Lucas <jean@4ray.co>

pkgname=opensmtpd-filter-senderscore
_pkgname=${pkgname/opensmtpd-/}
pkgver=0.1.0+r2+gf828d6b
_commit=f828d6b6bad971fa8b196b1d13416835fb353ef5 # Latest and greatest
pkgrel=1
pkgdesc='OpenSMTPD filter integration for the SenderScore reputation'
arch=(i686 x86_64)
url=https://github.com/poolpOrg/filter-senderscore
license=(ISC)
depends=(glibc)
makedepends=(git go)
source=(git+$url#commit=$_commit)
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's#-#+#g;s#+#+r#'
}
  
build() {
  cd $_pkgname
  go build
}

package() {
  cd $_pkgname
  install -D filter-senderscore -t "$pkgdir"/usr/bin
  install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
  install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}