diff options
Diffstat (limited to 'openarc/PKGBUILD')
-rw-r--r-- | openarc/PKGBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/openarc/PKGBUILD b/openarc/PKGBUILD new file mode 100644 index 0000000..afe0482 --- /dev/null +++ b/openarc/PKGBUILD | |||
@@ -0,0 +1,33 @@ | |||
1 | # Maintainer : Immae <ismael.bouya@normalesup.org> | ||
2 | |||
3 | pkgname=openarc-git | ||
4 | pkgver=v1.0.0.Beta1.r0.g355ee2a | ||
5 | pkgrel=1 | ||
6 | pkgdesc="Open source ARC implementation" | ||
7 | arch=('x86_64') | ||
8 | url="https://github.com/trusteddomainproject/OpenARC" | ||
9 | depends=("libmilter") | ||
10 | license=('Custom') | ||
11 | source=("openarc-git::git+https://github.com/trusteddomainproject/OpenARC.git#branch=master") | ||
12 | sha256sums=('SKIP') | ||
13 | |||
14 | pkgver() { | ||
15 | cd "$pkgname" | ||
16 | git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | ||
17 | } | ||
18 | |||
19 | |||
20 | build () { | ||
21 | cd "$pkgname" | ||
22 | autoreconf -fvi | ||
23 | ./configure --prefix=/usr \ | ||
24 | --sysconfdir=/etc | ||
25 | make | ||
26 | } | ||
27 | |||
28 | package() { | ||
29 | cd "$pkgname" | ||
30 | make DESTDIR="$pkgdir" install | ||
31 | mkdir -p "$pkgdir/etc/openarc" | ||
32 | mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin" | ||
33 | } | ||