diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 23 |
3 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8c6ddbf3f0b2 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = xidlehook + pkgdesc = xautolock rewrite in Rust, with a few extra features + pkgver = 0.1.0 + pkgrel = 1 + url = https://github.com/jD91mZM2/xidlehook + arch = x86_64 + license = MIT + source = https://github.com/jD91mZM2/xidlehook/archive/0.1.0.tar.gz + sha256sums = 3f720bc1cc93887537138deb478c4e897cb1bae1bfef295ce14c2a77398a740c + +pkgname = xidlehook + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..05c6d4d4c97b --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +* +!.gitignore +!.SRCINFO +!PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a2ce9f44b47d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: jD91mZM2 <me@krake.one> +pkgname="xidlehook" +pkgver=0.1.0 +pkgrel=1 +pkgdesc="xautolock rewrite in Rust, with a few extra features" +url="https://github.com/jD91mZM2/xidlehook" +arch=("x86_64") +license=("MIT") +makedepends=() +optdepends=() +depends=() +source=("https://github.com/jD91mZM2/$pkgname/archive/$pkgver.tar.gz") +sha256sums=('3f720bc1cc93887537138deb478c4e897cb1bae1bfef295ce14c2a77398a740c') + +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" +} |