aboutsummaryrefslogtreecommitdiff
path: root/openarc
diff options
context:
space:
mode:
Diffstat (limited to 'openarc')
-rw-r--r--openarc/.SRCINFO13
-rw-r--r--openarc/PKGBUILD33
2 files changed, 46 insertions, 0 deletions
diff --git a/openarc/.SRCINFO b/openarc/.SRCINFO
new file mode 100644
index 0000000..1dbdf75
--- /dev/null
+++ b/openarc/.SRCINFO
@@ -0,0 +1,13 @@
1pkgbase = openarc-git
2 pkgdesc = Open source ARC implementation
3 pkgver = v1.0.0.Beta1.r0.g355ee2a
4 pkgrel = 1
5 url = https://github.com/trusteddomainproject/OpenARC
6 arch = x86_64
7 license = Custom
8 depends = libmilter
9 source = openarc-git::git+https://github.com/trusteddomainproject/OpenARC.git#branch=master
10 sha256sums = SKIP
11
12pkgname = openarc-git
13
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}