summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b5b979e659e609533a5aad2296e640eedd50112a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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}"

}