# Maintainer: Frederic Bezies < fredbezies at gmail dot com> # Contributor: bitwave < aur [at] oomlu [d0t] de > # Contributor: carstene1ns # Contributor: Anton Bazhenov # Contributor: Biginoz # Contributor: Adrián Chaves Fernández _pkgbase=violetland pkgname=$_pkgbase-git pkgver=0.5.r125.g176914e pkgrel=1 pkgdesc='Open source cross platform game where a girl, Violet, struggles with hordes of monsters (clone of "crimsonland").' arch=('i686' 'x86_64') 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 }