summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: afe04823f1ae2bd5af292f7e4b959e58756b6cc7 (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
# Maintainer : Immae <ismael.bouya@normalesup.org>

pkgname=openarc-git
pkgver=v1.0.0.Beta1.r0.g355ee2a
pkgrel=1
pkgdesc="Open source ARC implementation"
arch=('x86_64')
url="https://github.com/trusteddomainproject/OpenARC"
depends=("libmilter")
license=('Custom')
source=("openarc-git::git+https://github.com/trusteddomainproject/OpenARC.git#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}


build () {
  cd "$pkgname"
  autoreconf -fvi
  ./configure --prefix=/usr \
              --sysconfdir=/etc
  make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir" install
  mkdir -p "$pkgdir/etc/openarc"
  mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
}