summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjD91mZM22018-02-02 15:49:02 +0100
committerjD91mZM22018-02-02 15:49:02 +0100
commitf4c7569082eee43c26acf94cdf2b4539ef30b16d (patch)
treecaee23e659fe81e262c10d8f4e7ca2233051da89
downloadaur-f4c7569082eee43c26acf94cdf2b4539ef30b16d.tar.gz
Initial commit
-rw-r--r--.SRCINFO12
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD23
3 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8c6ddbf3f0b
--- /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 00000000000..05c6d4d4c97
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*
+!.gitignore
+!.SRCINFO
+!PKGBUILD
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a2ce9f44b47
--- /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"
+}