summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a44e29839900995da969587f6793ee9f87c576bb (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
# Maintainer : Daniel Bermond <dbermond@archlinux.org>

pkgname=megaglest-data-git
pkgver=3.13.0.r15.gdf2ae0a5
pkgrel=1
pkgdesc='Fork of Glest, a 3D real-time strategy game in a fantastic world (data files, git version)'
arch=('any')
url='https://megaglest.org/'
license=('custom:CCBYSA3.0')
makedepends=('git' 'cmake' 'xz')
provides=('megaglest-data')
conflicts=('megaglest-data')
source=('git+https://github.com/MegaGlest/megaglest-data.git')
sha256sums=('SKIP')

pkgver() {
    git -C megaglest-data describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}

build() {
    cmake -B build -S megaglest-data \
        -G 'Unix Makefiles' \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
        -DWANT_INSTALL_DATA:BOOL='ON' \
        -Wno-dev
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
    install -D -m644 megaglest-data/docs/README.data-license.txt "${pkgdir}/usr/share/licenses/${pkgname}/NOTES"
}