summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e32f678588b9a0d44f4baea17b1255239d477522 (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
# Maintainer: James Armstrong

pkgname=(splashkit-git)
_gitname=splashkit
pkgver=r252.f1ce067
pkgrel=1
pkgdesc='A toolkit designed to make it easy for students to create games.'
arch=('x86_64')
url='http://splashkit.io/'
makedepends=(git cmake sdl2 sdl2_mixer sdl2_gfx sdl2_image sdl2_mixer sdl2_net sdl2_ttf sqlite libmikmod libpng smpeg2 curl)
source=('git+https://github.com/jarmstrong/splashkit.git')
md5sums=('SKIP')

pkgver() {
    cd $_gitname

    # Get the version number.
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd $_gitname

    msg2 "Pulling the submodules"
    git submodule update --init --recursive
}

build() {
    cd $_gitname/projects/cmake
    
    msg2 "Building splashkit library"
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .
    make -j 2
}

package() {
    cd $_gitname/projects/cmake

    make DESTDIR=$pkgdir install
}