summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a6da6650219708124bc99c6cac9c7ee3a4be89a9 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 
# Contributor: Frederic Bezies < fredbezies at gmail dot com>
# Contributor: bitwave < aur [at] oomlu [d0t] de >
# Contributor: carstene1ns <url/mail: arch carsten-teibes de>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail> 
# Contributor: Biginoz <biginoz _at_ free _point_ fr>
# Contributor: Adrián Chaves Fernández <adriyetichaves@gmail.com>

_pkgbase=violetland
pkgname=$_pkgbase-git
pkgver=0.5.r148.ge10b13d
pkgrel=2
pkgdesc='Open source cross platform game where a girl, Violet, struggles with hordes of monsters (clone of "crimsonland").'
arch=('i686' 'x86_64' 'aarch64')
url="http://violetland.github.io"
license=('GPL3' 'CCPL:by-sa')
depends=('sdl_image' 'sdl_mixer' 'sdl_ttf' 'mesa' 'boost-libs')
makedepends=('cmake' 'boost' 'git')
conflicts=("$_pkgbase")
provides=("$_pkgbase")
source=($_pkgbase::"git+https://github.com/ooxi/violetland.git")
md5sums=('SKIP')

pkgver() {
  cd $_pkgbase
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  cd $_pkgbase

  # check out submodules
  git submodule init
  git submodule update
}

build() {
  cd $_pkgbase

  cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd $_pkgbase

  make DESTDIR="$pkgdir/" install

  # .desktop entry
  install -Dm644 $_pkgbase.desktop "$pkgdir"/usr/share/applications/$_pkgbase.desktop
  install -Dm644 icon-light.png "$pkgdir"/usr/share/pixmaps/$_pkgbase.png
}