summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c3d05b41e8a61e70e8f785a2adf995a9dce290ed (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: Nikos Toutountzoglou <nikos dot toutou at protonmail dot com>

pkgname=dreamchess
pkgver=0.3.0
pkgrel=5
pkgdesc='An open source chess game. It comes with its own engine called Dreamer'
arch=('x86_64')
url="https://github.com/dreamchess/dreamchess"
license=('GPL-3.0-only' 'CC-BY-3.0')
depends=(
  'expat'
  'glew'
  'glibc'
  'glu'
  'hicolor-icon-theme'
  'libglvnd'
  'sdl2'
  'sdl2_image'
  'sdl2_mixer'
)
makedepends=(
  'flex'
  'bison'
  'cmake'
)
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/${pkgver}.tar.gz"
        "${pkgname}-music-1.0.tar.gz::${url}-music/archive/refs/tags/1.0.tar.gz")
sha256sums=('b070a34acf69ed92e523902683d104abb295d78b6f37663f4668e929b9e90470'
            '2067e7415318edbc95f5aefab7ba1d196fb070809bf613e46492d8084ff18f9d')

build() {
  cd "${pkgname}-${pkgver}"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev -B cmake
  make -C cmake
}

package() {
  cd "${pkgname}-${pkgver}"
  make -C cmake DESTDIR="${pkgdir}" install
  # Install music content
  cp -av --no-preserve='ownership,mode' "${srcdir}/${pkgname}-music-1.0/data/music" "${pkgdir}/usr/share/${pkgname}"
}

# vim:set ts=2 sw=2 et: