summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD34
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..25a8161e374
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = droidbattles-git
+ pkgdesc = A programming game where you program bots in assembly
+ pkgver = r147.8e47dfe
+ pkgrel = 1
+ url = https://github.com/sandsmark/droidbattles
+ arch = i686
+ arch = x86_64
+ license = LGPL
+ makedepends = qt5-base
+ depends = qt5-base
+ provides = droidbattles
+ conflicts = droidbattles
+ source = git://github.com/sandsmark/droidbattles.git
+ md5sums = SKIP
+
+pkgname = droidbattles-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b5b979e659e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Martin Sandsmark <martin.sandsmark@kde.org>
+
+pkgname=droidbattles-git
+pkgver=r147.8e47dfe
+pkgrel=1
+pkgdesc='A programming game where you program bots in assembly'
+arch=('i686' 'x86_64')
+url='https://github.com/sandsmark/droidbattles'
+license=('LGPL')
+depends=('qt5-base')
+makedepends=('qt5-base')
+conflicts=(droidbattles)
+provides=(droidbattles)
+source=('git://github.com/sandsmark/droidbattles.git')
+md5sums=('SKIP')
+
+pkgver() {
+ cd droidbattles
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd droidbattles
+ qmake
+ make
+}
+
+package() {
+ cd droidbattles
+ make INSTALL_ROOT="$pkgdir" install
+ install -vDm 644 {AUTHORS,README.md} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+
+}