# Maintainer: Alexander Samoylenko pkgname=xidlehook pkgver=0.6.2 pkgrel=1 pkgdesc="xautolock rewrite in Rust, with a few extra features" url="https://gitlab.com/jD91mZM2/xidlehook" arch=("x86_64") license=("MIT") makedepends=("rust" "libxss") optdepends=() depends=("libpulse") source=("$url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz") sha256sums=('6fe9ae7efe410f8cb55959f561f54ca0053560a526d69a5b03f07da400426b12') 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" }