summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hesse2016-01-27 09:24:39 +0100
committerChristian Hesse2016-01-27 09:24:39 +0100
commitedeb65259ed3542e8676466ebfb731665a14c221 (patch)
tree22637a476d41cbf119294a22ee287565a6933432
downloadaur-edeb65259ed3542e8676466ebfb731665a14c221.tar.gz
commit svkbd-git 0.r50.gfc26700-1
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD49
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c672bc62fa5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by mksrcinfo v8
+# Wed Jan 27 08:24:39 UTC 2016
+pkgbase = svkbd-git
+ pkgdesc = simple virtual keyboard - git checkout
+ pkgver = 0.r50.gfc26700
+ pkgrel = 1
+ url = http://tools.suckless.org/x/svkbd
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = markdown
+ depends = libx11
+ depends = libxtst
+ provides = svkbd
+ conflicts = svkbd
+ source = git://git.suckless.org/svkbd
+ sha256sums = SKIP
+
+pkgname = svkbd-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..03e86bfcade
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Christian Hesse <mail@eworm.de>
+
+pkgname=svkbd-git
+pkgver=0.r50.gfc26700
+pkgrel=1
+pkgdesc='simple virtual keyboard - git checkout'
+arch=('i686' 'x86_64')
+url='http://tools.suckless.org/x/svkbd'
+depends=('libx11' 'libxtst')
+conflicts=('svkbd')
+provides=('svkbd')
+makedepends=('git' 'markdown')
+license=('MIT')
+source=('git://git.suckless.org/svkbd')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd svkbd/
+
+ if GITTAG="$(git describe --abbrev=0 --tags 2>/dev/null)"; then
+ printf '%s.r%s.g%s' \
+ "$(sed -e "s/^${pkgname%%-git}//" -e 's/^[-_/a-zA-Z]\+//' -e 's/[-_+]/./g' <<< ${GITTAG})" \
+ "$(git rev-list --count ${GITTAG}..)" \
+ "$(git log -1 --format='%h')"
+ else
+ printf '0.r%s.g%s' \
+ "$(git rev-list --count master)" \
+ "$(git log -1 --format='%h')"
+ fi
+}
+
+build() {
+ cd svkbd/
+
+ make
+
+ markdown README.md > README.html
+}
+
+package() {
+ cd svkbd/
+
+ make DESTDIR="${pkgdir}" PREFIX='/usr/' install
+
+ install -D -m0644 'LICENSE' "${pkgdir}/usr/share/licenses/vis/LICENSE"
+ install -D -m0644 'README.md' "${pkgdir}/usr/share/doc/vis/README.md"
+ install -D -m0644 'README.html' "${pkgdir}/usr/share/doc/vis/README.html"
+}
+