summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a08dc62d0964e62137c97f13eea03ee18db9f5fe (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
45
46
47
48
# Maintainer: MichaƂ Walenciak <kicer86@gmail.com>
pkgname=openblok
pkgver=0.8.2
pkgrel=3
pkgdesc="A customizable, cross platform, open-source falling block game, packed with a bunch of features."
arch=('i686' 'x86_64')
url="https://github.com/mmatyas/openblok"
license=('GPL3')
groups=()
depends=('sdl2'
         'sdl2_image'
         'sdl2_mixer'
         'sdl2_ttf')
makedepends=('cmake' 'gcc8')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(https://codeload.github.com/mmatyas/$pkgname/tar.gz/v$pkgver libSDL2pp::git+https://github.com/mmatyas/libSDL2pp.git#branch=cmake_modernization)
noextract=()
md5sums=('6dd426a1dec30c74036ae09113505659'
         'SKIP')

prepare()
{
    rm -d $pkgname-$pkgver/thirdparty/libSDL2pp
    ln -s `pwd`/libSDL2pp $pkgname-$pkgver/thirdparty/libSDL2pp
}

build()
{
    cd $pkgname-$pkgver
    mkdir -p build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX=/usr -DEXEDIR=/usr/bin -DCMAKE_CXX_COMPILER=c++-8 -DCMAKE_C_COMPILER=gcc-8 ..
    make
}

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