summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Elkouby2019-02-22 00:15:20 +0200
committerDan Elkouby2019-02-22 00:15:20 +0200
commit41f150a3c32f4c4a5a9350932861d814f59950d1 (patch)
tree68f522241794f27c29096dd56cd255e357c64b98
downloadaur-41f150a3c32f4c4a5a9350932861d814f59950d1.tar.gz
Initial import
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD31
3 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..015bf71d08d
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = hacksaw-git
+ pkgdesc = Utility to select screen regions
+ pkgver = r52.d5254c2
+ pkgrel = 1
+ url = https://github.com/neXromancers/hacksaw
+ arch = x86_64
+ license = MPL2
+ makedepends = cargo
+ depends = gcc-libs
+ depends = libxcb
+ source = git+https://github.com/neXromancers/hacksaw.git
+ md5sums = SKIP
+
+pkgname = hacksaw-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..e535b5244a4
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+hacksaw/
+*.pkg.tar*
+src/
+pkg/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8dc96dc830a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Dan Elkouby <streetwalkermc@gmail.com>
+
+_pkgname=hacksaw
+pkgname=${_pkgname}-git
+pkgver=r52.d5254c2
+pkgrel=1
+pkgdesc="Utility to select screen regions"
+arch=('x86_64')
+url="https://github.com/neXromancers/${_pkgname}"
+license=('MPL2')
+depends=('gcc-libs' 'libxcb')
+makedepends=('cargo')
+source=("git+https://github.com/neXromancers/${_pkgname}.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ cargo build --release
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ install -Dm755 target/release/${_pkgname} ${pkgdir}/usr/bin/${pkgname}
+}
+
+# vim:set ts=2 sw=2 et: