summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoost Bremmer2015-05-24 17:36:30 +0200
committerJoost Bremmer2015-05-24 17:36:30 +0200
commitaea2839c5d190f39ebd6b32c403de4eb64cee75b (patch)
tree26edc540246e3bdef751a6fa8472229cb9f2d3f8
downloadaur-aea2839c5d190f39ebd6b32c403de4eb64cee75b.tar.gz
20150115
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD30
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9be542bc61b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by makepkg 4.2.1
+# Sun May 24 15:32:23 UTC 2015
+pkgbase = clmystery-git
+ pkgdesc = A command-line murder mystery
+ pkgver = 20150115
+ pkgrel = 1
+ url = https://github.com/veltman/clmystery
+ arch = any
+ license = MIT
+ makedepends = git
+ source = git+https://github.com/veltman/clmystery.git
+ md5sums = SKIP
+
+pkgname = clmystery-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7e8af9adc1e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Joost Bremmer <toost dot b at gmail dot com>
+pkgname=clmystery-git
+pkgver=20150115
+pkgrel=1
+pkgdesc="A command-line murder mystery"
+arch=('any')
+license=('MIT')
+url="https://github.com/veltman/clmystery"
+makedepends=('git')
+options=()
+install=
+source=('git+https://github.com/veltman/clmystery.git')
+md5sums=('SKIP')
+
+
+pkgver()
+{
+ cd "${srcdir}/${pkgname%-git}"
+ git log -1 --format="%cd" --date=short | sed 's/-//g'
+
+}
+
+package() {
+ cd "${srcdir}"
+
+ find ${pkgname%-git} -type f -perm 644 -and -not -iname "LICENSE.md" -and \( ! -regex '.*/\..*' \) -exec install -Dv -m 644 {,${pkgdir}/opt/}{} \;
+ install -Dv -m644 ${pkgname%-git}/LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: