summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Scarpino2016-12-04 18:46:41 +0100
committerAndrea Scarpino2016-12-04 18:46:41 +0100
commitadea400e500bfba2d140e66960bb9126fb7184e9 (patch)
treecb1cde054191811314fc457450626834606ba04a
downloadaur-adea400e500bfba2d140e66960bb9126fb7184e9.tar.gz
First
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD33
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d1288f97af6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Sun Dec 4 17:46:33 UTC 2016
+pkgbase = arch-audit-git
+ pkgdesc = An utility like pkg-audit based on Arch CVE Monitoring Team data
+ pkgver = 0.1.5.r4.g0685603
+ pkgrel = 1
+ url = https://github.com/ilpianista/arch-audit
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = cargo
+ makedepends = git
+ depends = curl
+ source = git://github.com/ilpianista/arch-audit.git
+ md5sums = SKIP
+
+pkgname = arch-audit-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..906fd0d39ba
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+
+pkgname=arch-audit-git
+pkgver=0.1.5.r4.g0685603
+pkgrel=1
+pkgdesc='An utility like pkg-audit based on Arch CVE Monitoring Team data'
+url='https://github.com/ilpianista/arch-audit'
+depends=('curl')
+makedepends=('cargo' 'git')
+arch=('i686' 'x86_64')
+license=('MIT')
+source=('git://github.com/ilpianista/arch-audit.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd arch-audit
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd arch-audit
+ cargo build --release
+}
+
+package() {
+ cd arch-audit
+ install -Dm755 "target/release/${pkgname}" "$pkgdir/usr/bin/${pkgname}"
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ install -Dm644 systemd/arch-audit.service "${pkgdir}/usr/share/${pkgname}/arch-audit.service"
+ install -Dm644 systemd/arch-audit.timer "${pkgdir}/usr/share/${pkgname}/arch-audit.timer"
+}