aboutsummaryrefslogtreecommitdiff
path: root/openarc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'openarc/PKGBUILD')
-rw-r--r--openarc/PKGBUILD33
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
3pkgname=openarc-git
4pkgver=v1.0.0.Beta1.r0.g355ee2a
5pkgrel=1
6pkgdesc="Open source ARC implementation"
7arch=('x86_64')
8url="https://github.com/trusteddomainproject/OpenARC"
9depends=("libmilter")
10license=('Custom')
11source=("openarc-git::git+https://github.com/trusteddomainproject/OpenARC.git#branch=master")
12sha256sums=('SKIP')
13
14pkgver() {
15 cd "$pkgname"
16 git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
17}
18
19
20build () {
21 cd "$pkgname"
22 autoreconf -fvi
23 ./configure --prefix=/usr \
24 --sysconfdir=/etc
25 make
26}
27
28package() {
29 cd "$pkgname"
30 make DESTDIR="$pkgdir" install
31 mkdir -p "$pkgdir/etc/openarc"
32 mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
33}