diff options
Diffstat (limited to 'openarc')
-rw-r--r-- | openarc/.SRCINFO | 13 | ||||
-rw-r--r-- | openarc/PKGBUILD | 33 |
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 @@ | |||
1 | pkgbase = 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 | |||
12 | pkgname = 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 | |||
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 | } | ||