diff options
author | taotieren | 2023-09-01 17:17:21 +0800 |
---|---|---|
committer | taotieren | 2023-09-01 17:17:21 +0800 |
commit | 53cb723bc2998bef2ca7b1437a227e1b827307b8 (patch) | |
tree | 363f9b6123327cf8a3a21c4aed17c72a9f6cd5cc | |
download | aur-53cb723bc2998bef2ca7b1437a227e1b827307b8.tar.gz |
Update 0.2.0-1
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 45 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7670159266af --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = sudo-rs + pkgdesc = A memory safe implementation of sudo and su. + pkgver = 0.2.0 + pkgrel = 1 + url = https://github.com/memorysafety/sudo-rs + arch = any + license = Apache 2.0, + license = MIT + makedepends = cargo + makedepends = clang + makedepends = pam + provides = sudo-rs + conflicts = sudo-rs + replaces = sudo + options = !strip + options = !lto + source = sudo-rs-0.2.0.tar.gz::https://github.com/memorysafety/sudo-rs/archive/refs/tags/v0.2.0.tar.gz + sha256sums = 2d1e6bdfc8f14a6023328ffd48a00f7c973409e7bdc6199f484c095ad9817090 + +pkgname = sudo-rs diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3d11730f2e3f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: taotieren <admin@taotieren.com> + +pkgname=sudo-rs +pkgver=0.2.0 +pkgrel=1 +pkgdesc="A memory safe implementation of sudo and su." +arch=('any') +url="https://github.com/memorysafety/sudo-rs" +license=('Apache 2.0', 'MIT') +provides=(${pkgname}) +conflicts=(${pkgname}) +replaces=(sudo) +depends=() +makedepends=(cargo + clang + pam) +backup=() +options=('!strip' '!lto') +#install=${pkgname}.install +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('2d1e6bdfc8f14a6023328ffd48a00f7c973409e7bdc6199f484c095ad9817090') + +build() { + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + + cd "${srcdir}/${pkgname}-${pkgver}/" + cargo build --release --all-features +} + +# check() { +# export RUSTUP_TOOLCHAIN=stable +# export CARGO_TARGET_DIR=target +# +# cd "${srcdir}/${pkgname}-${pkgver}/" +# cargo test --release --all-features +# } + +package() { + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + + cd "${srcdir}/${pkgname}-${pkgver}/" + cargo install --no-track --all-features --root "$pkgdir/usr/" --path . +} |