summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a482e038b6cf11b2cc834ac7c697836e1e95787 (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
pkgname=danmaq-git
pkgdesc="Play Danmaku On Any Screen"
pkgver=0.r70.5c60988
pkgrel=1
arch=("i686" "x86_64")
license=('GPL')
url="https://github.com/bigeagle/danmaQ"
depends=('qt4' 'qjson')
makedepends=('cmake')

source=("$pkgname::git://github.com/bigeagle/danmaQ.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
}

build() {
  cd build
  cmake ../${pkgname} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd build
  make DESTDIR="${pkgdir}" install
}