summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Blakeney2018-09-10 15:13:57 +1000
committerMark Blakeney2018-09-10 15:13:57 +1000
commitdff5b0b47183d127620d01b658f891b17f49af1b (patch)
tree62313e42a3a2afe22b18538c4af05a6da97731fd
downloadaur-dff5b0b47183d127620d01b658f891b17f49af1b.tar.gz
Initial version 1.0
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore4
-rw-r--r--Makefile23
-rw-r--r--PKGBUILD18
4 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..1c401b5b29f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = raise-or-run
+ pkgdesc = Linux shell script to raise app window, or run app if window not already open
+ pkgver = 1.0
+ pkgrel = 1
+ url = https://github.com/bulletmark/raise-or-run
+ arch = any
+ license = GPL3
+ depends = bash
+ depends = wmctrl
+ source = raise-or-run-1.0.tar.gz::https://github.com/bulletmark/raise-or-run/archive/1.0.tar.gz
+ md5sums = 2aa282e43dce79d666f19b2b5104fa98
+
+pkgname = raise-or-run
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6dd39bbd03b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar
+*.[gx]z
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000000..d98ad5acca6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+nam = $(shell sed -n 's/^pkgname=//p' PKGBUILD)
+src = PKGBUILD
+inf = .SRCINFO
+pkg = $(shell ls -v $(nam)*.pkg.tar* 2>/dev/null | tail -1)
+
+all: sum $(inf) check
+
+$(inf): $(src)
+ makepkg --printsrcinfo >$@
+
+check: $(src)
+ namcap $^
+ifneq ($(strip $(pkg)),)
+ namcap $(pkg)
+endif
+
+sum: $(src)
+ updpkgsums
+
+clean:
+ rm -rf $(inf) $(nam)-* *.tar.xz *.tar.gz pkg/ src/ *.part
+
+# vim: se ts=4:
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c9d12be7c26
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,18 @@
+# Maintainer: mark.blakeney at bullet-systems dot net
+pkgname=raise-or-run
+pkgver=1.0
+pkgrel=1
+pkgdesc="Linux shell script to raise app window, or run app if window not already open"
+url="https://github.com/bulletmark/$pkgname"
+license=("GPL3")
+arch=("any")
+depends=("bash" "wmctrl")
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+md5sums=('2aa282e43dce79d666f19b2b5104fa98')
+
+package() {
+ cd "$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+}
+
+# vim:set ts=2 sw=2 et: