# Maintainer: jD91mZM2 pkgname="xidlehook" pkgver=0.4.4 pkgrel=1 pkgdesc="xautolock rewrite in Rust, with a few extra features" url="https://github.com/jD91mZM2/xidlehook" arch=("x86_64") license=("MIT") makedepends=("rust") optdepends=() depends=() source=("https://github.com/jD91mZM2/$pkgname/archive/$pkgver.tar.gz") sha256sums=('5e117c4745200d9b6688445095311778f56440c0407faca34ec9b03848659b6b') build() { cd "$srcdir/$pkgname-$pkgver" cargo build --release } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" }