From: Ismaƫl Bouya Date: Mon, 11 Mar 2019 23:10:45 +0000 (+0100) Subject: Initial upload: openarc-git v1.0.0.Beta1.r0.g355ee2a-1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a4e7df7ca09a0fabb2516953c0eb7627b5774cab;p=perso%2FImmae%2FConfig%2FAUR.git Initial upload: openarc-git v1.0.0.Beta1.r0.g355ee2a-1 --- diff --git a/openarc/.SRCINFO b/openarc/.SRCINFO new file mode 100644 index 0000000..1dbdf75 --- /dev/null +++ b/openarc/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = openarc-git + pkgdesc = Open source ARC implementation + pkgver = v1.0.0.Beta1.r0.g355ee2a + pkgrel = 1 + url = https://github.com/trusteddomainproject/OpenARC + arch = x86_64 + license = Custom + depends = libmilter + source = openarc-git::git+https://github.com/trusteddomainproject/OpenARC.git#branch=master + sha256sums = SKIP + +pkgname = openarc-git + diff --git a/openarc/PKGBUILD b/openarc/PKGBUILD new file mode 100644 index 0000000..40632fb --- /dev/null +++ b/openarc/PKGBUILD @@ -0,0 +1,31 @@ +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" +}