summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornycex2021-08-30 18:57:17 +0200
committernycex2021-08-30 18:57:17 +0200
commit820cceb67cde5a2878a595393faf861295a2257e (patch)
tree848c24b6d0316c06bfc4e4ecce772f0a7c8d9b5b
downloadaur-clicker-git.tar.gz
initial commit
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD30
2 files changed, 43 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..873544299de
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = clicker-git
+ pkgdesc = a simple desktop automation tool (autoclicker)
+ pkgver = r45.9ef5eeb
+ pkgrel = 1
+ url = https://codeberg.org/nycex/clicker
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = cargo
+ source = git+https://codeberg.org/nycex/clicker
+ sha256sums = SKIP
+
+pkgname = clicker-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4ee64214eaf
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: nycex <nycex / cccp.org>
+_pkgbasename=clicker
+pkgname=${_pkgbasename}-git
+pkgrel=1
+pkgver=r45.9ef5eeb
+pkgdesc="a simple desktop automation tool (autoclicker)"
+arch=('any')
+url="https://codeberg.org/nycex/${_pkgbasename}"
+license=('GPL3')
+depends=('cargo')
+makedepends=('git')
+source=(git+${url})
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgbasename}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgbasename}"
+ cargo build --release
+}
+
+package() {
+ cd "${srcdir}/${_pkgbasename}"
+
+ install -D -m755 target/release/$_pkgbasename "${pkgdir}/usr/bin/$_pkgbasename"
+ install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$_pkgbasename/LICENSE"
+}