diff options
author | tgabor7 | 2023-11-19 20:30:23 +0100 |
---|---|---|
committer | tgabor7 | 2023-11-19 20:30:23 +0100 |
commit | cbefa976842d43113e7f0ca103347ab99cbc0b61 (patch) | |
tree | e6689d70e04eb2363630af9110021f72a5fd1541 | |
download | aur-cbefa976842d43113e7f0ca103347ab99cbc0b61.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2c9180b11396 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = wlock-git + pkgdesc = A very simple screen locker for Wayland + pkgver = 0.0.0 + pkgrel = 1 + url = https://github.com/tgabor7/sl + arch = x86_64 + license = BSD + depends = wayland + depends = wayland-protocols + depends = cargo + source = sl-0.0.0-linux.tar.gz::https://github.com/tgabor7/sl/archive/tags/v0.0.0.tar.gz + md5sums = SKIP + b2sums = SKIP + +pkgname = wlock-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..00115dca5858 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: TarkoGabor (@tgabor7) +pkgname=wlock-git +pkgver=0.0.0 +pkgrel=1 +pkgdesc="A very simple screen locker for Wayland" +arch=('x86_64') +url="https://github.com/tgabor7/sl" +license=('BSD') +depends=('wayland' 'wayland-protocols' 'cargo') +source=("sl-$pkgver-linux.tar.gz::https://github.com/tgabor7/sl/archive/tags/v$pkgver.tar.gz") +b2sums=('SKIP') +md5sums=('SKIP') + +pkgver() { + cd cbindgen + git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g' +} + +prepare() { + export RUSTUP_TOOLCHAIN=stable + cargo fetch --locked --target "$CARCH-unknown-linux-gnu" +} + +build() { + export RUSTUP_TOOLCHAIN=stable + export CARGO_TARGET_DIR=target + cargo build --frozen --release --all-features +} + +package() { + install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" +} |