blob: 378fa0d57ed7085a764381d120bc04c342d3fe66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: techfreak <techfreak@matrix.org>
pkgname=arch-sec-check-git
pkgver=1.1.3.17.g55d3d26
pkgrel=1
pkgdesc="Compares your local installed packages with the arch linux security database"
arch=(any)
url="https://gitlab.com/techfreak/arch-sec-check"
license=(GPL2)
depends=(openssl)
makedepends=(git rust)
optdepends=()
source=("git+${url}.git")
sha256sums=('SKIP')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
pkgver() {
cd ${pkgname%-git}
#printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
printf "$(grep '^version =' Cargo.toml|head -n1|cut -d\" -f2|cut -d\- -f1).$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}
build() {
cd ${pkgname%-git}
cargo build --release --locked
}
package() {
cd ${pkgname%-git}
install -Dm755 "target/release/${pkgname%-git}" "${pkgdir}/usr/bin/${pkgname%-git}"
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname%-git}/LICENSE"
}
|