summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 229f3a95a6cccc44658dbf60d1a8f665b3df3680 (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
# Maintainer: Tyler Johnson <tejohnso2 at popular google mail domain>
pkgname=slitherling
pkgver=3666064
pkgrel=1
pkgdesc="A simple snake game. Feed your snake with fruit. Arrow keys, VIM keys, or spacebar (easy mode)."
arch=('i686' 'x86_64')
license=('GPL-3.0')
depends=('sfml')
source=("https://storage.googleapis.com/slitherling-source/src-$pkgver.tar.gz"
         "https://storage.googleapis.com/slitherling-source/resources-$pkgver.tar.gz")
md5sums=("SKIP" "SKIP")
makedepends=('gcc>=9.0.0' 'cmake>=3.11' 'ninja>=1.9')
epoch=1634267741
build() {
        cd $SRCDEST/src
        cp ../CMakeLists.txt .
	mkdir -p build
        cd build
        cmake -G "Ninja" -DCMAKE_BUILD_TYPE=MinSizeRel .. && ninja
}

package() {
        cd $SRCDEST
        install -m 755 -d "${pkgdir}/usr/bin"
        install -m 755 -t "${pkgdir}/usr/bin/" "src/build/src/main/slitherling"

        install -m 755 -d "${pkgdir}/usr/share/${pkgname}"
        cp -r src/resources "${pkgdir}/usr/share/${pkgname}"
        install -m 755 -t "${pkgdir}/usr/share/${pkgname}" "SLITHERLING_VERSION"
}