diff options
author | Wiktor Kwapisiewicz | 2022-02-28 08:51:55 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz | 2022-02-28 08:58:26 +0100 |
commit | ec8b4d9d1e81f5c733aa067954c5cc4dd0922eb9 (patch) | |
tree | 5263131c8cc07558d39291c651d89ebd24dbbb91 | |
download | aur-ec8b4d9d1e81f5c733aa067954c5cc4dd0922eb9.tar.gz |
Add pks-agent package
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | PKGBUILD | 34 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..373dbcf10a15 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = pks-agent-git + pkgdesc = Caches PKS credentials in memory + pkgver = 0.1 + pkgrel = 1 + url = https://gitlab.com/wiktor/pks-agent + arch = x86_64 + license = LGPL + makedepends = cargo + makedepends = git + provides = pks-agent + conflicts = pks-agent + source = pks-agent::git+https://gitlab.com/wiktor/pks-agent + sha512sums = SKIP + +pkgname = pks-agent-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ef95d8d8ca73 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +pkg +src +pks-* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..aefe45f21ec8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Wiktor Kwapisiewicz <wiktor@metacode.biz> + +pkgname=pks-agent-git +pkgver=0.1 +pkgrel=1 +pkgdesc="Caches PKS credentials in memory" +license=('LGPL') +url="https://gitlab.com/wiktor/pks-agent" +arch=('x86_64') +makedepends=(cargo git) +source=("pks-agent::git+https://gitlab.com/wiktor/pks-agent") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +sha512sums=('SKIP') + +build() { + cd "${srcdir}/${pkgname%-git}" + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +check() { + cd "${srcdir}/${pkgname%-git}" + export RUSTUP_TOOLCHAIN=stable + cargo test --frozen --all-features +} + +package() { + cd "${srcdir}/${pkgname%-git}" + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/${pkgname%-git}" + install -Dm0644 -t "$pkgdir/usr/lib/systemd/user/" "contrib/${pkgname%-git}.socket" + install -Dm0644 -t "$pkgdir/usr/lib/systemd/user/" "contrib/${pkgname%-git}.service" +} |