summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d0e9270fc468abb8362356a2525b3d34bd0d764 (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
# Maintainer: Yvaniak <ewen at philippot dot biz>
# Contributor: BenObiWan <benobiwan @t gmail dot com>
pkgname=zsxd-git
pkgver=785.823b6a1
pkgrel=1
epoch=
pkgdesc="Free and opensource, amateur Zelda game with humoristic characters."
arch=('any')
url="http://www.zelda-solarus.com/"
license=('custom')
groups=()
depends=('solarus-git')
makedepends=('git' 'cmake' 'zip' )
checkdepends=()
optdepends=()
provides=('zsxd')
conflicts=('zsxd')
backup=()
options=()
install=
changelog=
source=("$pkgname"::'git+https://gitlab.com/solarus-games/games/zsxd.git#branch=master')
noextract=()
md5sums=('SKIP')

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

build() {
  cd "${srcdir}/${pkgname}"

  cmake -D CMAKE_INSTALL_PREFIX="/usr" -D CMAKE_BUILD_TYPE=Release .
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}/" PREFIX="/usr" install
}