summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 889cd3aa7cf4de080bf2dbbb818cffeb4d886931 (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
# Maintainer:  <reg-archlinux AT klein DOT tuxli DOT ch> 

_pkgname=signus
pkgname=${_pkgname}-git
pkgver=r257.415610a
pkgrel=1
pkgdesc="Signus: The Artefact Wars assic turn-based strategy war game similar to the old Battle Isle series."
arch=('x86_64' 'aarch64')
url="https://github.com/signus-game/signus"
license=('GPL2')
depends=('sdl2' 'sdl2_mixer' 'sdl2_ttf' 'sdl2_image' 'libvorbis' 'libjpeg-turbo')
makedepends=('git')
source=(
  "${_pkgname%-*}::git+https://github.com/signus-game/signus.git"
  "${_pkgname}.desktop"
)
sha512sums=(
  'SKIP'
  '6a791044c16bd93f34e8fd77953f310ae645ee0daad5ec4f469247caf9b8665327c3b799b1ac63d8df357255ec85765f4e329c14266232a058f7445775622656'
)
conflicts=(${_pkgname})

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

build() {
  mkdir -p ${srcdir}/${_pkgname}/build
  #build signus
	cd "${srcdir}/${_pkgname}/signus"
  ./bootstrap
  ./configure --prefix=/usr/
  make
  make install DESTDIR=${srcdir}/${_pkgname}/build/
  #build signus-data
	cd "${srcdir}/${_pkgname}/signus-data"
  ./bootstrap
  ./configure --prefix=/usr/
  make
  make install DESTDIR=${srcdir}/${_pkgname}/build/
}

package() {
  install -Dm644 "${startdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
  cp -rp ${srcdir}/${_pkgname}/build/* ${pkgdir}/
}