summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2021-02-02 01:28:14 +0100
committeranthraxx2021-02-02 01:28:14 +0100
commit224b13946597f4841ca2f91c01fffff361bbbbad (patch)
treee07f991b1342ef4579bb89e29366838f32c91471
parentd3685333e7cf502b86e2b3bc820576eb36d7d8d1 (diff)
downloadaur-224b13946597f4841ca2f91c01fffff361bbbbad.tar.gz
adapt to new file layout and installation target
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD35
2 files changed, 24 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index c48ccce98e0..19541996fde 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = arch-audit-git
pkgdesc = A utility like pkg-audit based on Arch Security Team data
- pkgver = 0.1.14.r9.g857fd36
+ pkgver = 0.1.15.r58.g993b5b4
pkgrel = 1
url = https://gitlab.com/ilpianista/arch-audit
arch = i686
@@ -9,7 +9,12 @@ pkgbase = arch-audit-git
makedepends = cargo
makedepends = pkg-config
makedepends = git
+ makedepends = scdoc
+ depends = glibc
+ depends = gcc-libs
depends = curl
+ depends = libcurl.so
+ depends = libalpm.so
provides = arch-audit
conflicts = arch-audit
source = git+https://gitlab.com/ilpianista/arch-audit.git
diff --git a/PKGBUILD b/PKGBUILD
index 4964fd2ed79..b431daa54b5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,13 @@
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
pkgname=arch-audit-git
-pkgver=0.1.14.r9.g857fd36
+pkgver=0.1.15.r58.g993b5b4
pkgrel=1
pkgdesc='A utility like pkg-audit based on Arch Security Team data'
url='https://gitlab.com/ilpianista/arch-audit'
-depends=('curl')
-makedepends=('cargo' 'pkg-config' 'git')
+depends=('glibc' 'gcc-libs' 'curl' 'libcurl.so' 'libalpm.so')
+makedepends=('cargo' 'pkg-config' 'git' 'scdoc')
provides=('arch-audit')
conflicts=('arch-audit')
arch=('i686' 'x86_64')
@@ -21,25 +22,25 @@ pkgver() {
build() {
cd arch-audit
- cargo build --release
+ cargo build --release --locked
}
-package() {
+check() {
cd arch-audit
- install -Dm755 target/release/arch-audit "$pkgdir/usr/bin/arch-audit"
-
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cargo test --release --locked
+}
- install -Dm644 doc/arch-audit.1 "${pkgdir}/usr/share/man/man1/arch-audit.1"
+package() {
+ cd arch-audit
- 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"
+ make DESTDIR="${pkgdir}" PREFIX=/usr install
- install -Dm644 completions/zsh/_arch-audit \
- "${pkgdir}"/usr/share/zsh/site-functions/_arch-audit
+ install -Dm 644 contrib/systemd/arch-audit.service -t "${pkgdir}/usr/share/${pkgname}"
+ install -Dm 644 contrib/systemd/arch-audit.timer -t "${pkgdir}/usr/share/${pkgname}"
+ install -Dm 644 contrib/hooks/arch-audit.hook -t "${pkgdir}/usr/share/${pkgname}"
- install -Dm644 hooks/arch-audit.hook \
- "${pkgdir}"/usr/share/${pkgname}/arch-audit.hook
+ install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
+
+# vim: ts=2 sw=2 et: