summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6775c8d34fead0cbc991f36f3dadd22c1f4d1adc (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
# Maintainer: robertfoster
# Contributor: LIN Rs <LinRs[d]users.noreply.github.com>
# Contributor: yochananmarqos <mark.wagie at tutanota dot com>

_pkgname=devilutionX
pkgname=devilutionx
pkgver=1.1.0
pkgrel=2
pkgdesc="Diablo devolved for linux"
arch=('armv6h' 'armv7h' 'arm' 'aarch64' 'i686' 'x86_64')
url="https://github.com/diasurgical/devilutionX"
license=('custom:unlicense')
depends=('graphite' 'libsodium' 'sdl2_mixer' 'sdl2_ttf')
makedepends=('cmake' 'gcc-libs')
install="$pkgname".install
options=('strip')
source=("https://github.com/diasurgical/devilutionX/archive/$pkgver.tar.gz")

prepare() {
  cd "$srcdir/${_pkgname}-$pkgver"
  if [ -d build ]; then
    rm -rf build
  fi
  mkdir build
}

build() {
  cd "$srcdir/${_pkgname}-$pkgver/build"
  cmake .. \
    -DCMAKE_CXX_FLAGS_RELEASE="-D_FORTIFY_SOURCE=0" \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DBINARY_RELEASE=ON \
    -DVERSION_NUM="$pkgver"

  cmake --build .
}

package() {
  cd "$srcdir/${_pkgname}-$pkgver/build"
  DESTDIR=$pkgdir \
    cmake --install .
}

md5sums=('76e7f5219e8f58ee71ab671b13ce3139')