summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4b808d697dfeeaa715934d640e1faa8a5ee50b18 (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: Tigermouthbear tigermouthbear@tigr.dev
pkgname="flappytiger"
pkgver="0.1"
pkgrel=0
url="https://github.com/tigermouthbear/flappytiger"
license=("MIT")
pkgdesc="An opensource flappybird clone written in C++ using GLFW"
arch=("x86_64")
makedepends=("make" "cmake" "git")
source=("git://github.com/tigermouthbear/flappytiger.git")
sha1sums=("SKIP")

prepare() {
    cd $srcdir/$pkgname
    git checkout tags/v$pkgver
    git submodule update --init --recursive
}

build() {
	cd $srcdir/$pkgname
	mkdir build
	cd build
	cmake \
            -DCMAKE_INSTALL_PREFIX="/usr" \
            -DINSTALL_APP=ON \
            ..
	make
}

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