summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorYusuf Aktepe2020-07-23 16:40:16 +0300
committerYusuf Aktepe2020-07-23 16:40:16 +0300
commit78ed7d555e7ed157f00cdccd5a1fd6ef3e5c6916 (patch)
tree8b4a3abdb380447956bfb9cc6e4fda36fccace2d
downloadaur-xclickroot-git.tar.gz
Initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f67dd2daa06
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = xclickroot-git
+ pkgdesc = Click on root window and run a command
+ pkgver = r3.309fd17
+ pkgrel = 1
+ url = https://github.com/phillbush/xclickroot
+ arch = x86_64
+ license = Public Domain
+ makedepends = git
+ depends = libx11
+ source = git+https://github.com/phillbush/xclickroot.git
+ sha256sums = SKIP
+
+pkgname = xclickroot-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..01cf53b1879
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Yusuf Aktepe <yusuf@yusufaktepe.com>
+
+pkgname=xclickroot-git
+pkgver=r3.309fd17
+pkgrel=1
+pkgdesc="Click on root window and run a command"
+arch=(x86_64)
+url="https://github.com/phillbush/xclickroot"
+license=('Public Domain')
+depends=('libx11')
+makedepends=('git')
+source=("git+$url.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make PREFIX=/usr DESTDIR="$pkgdir" install
+}