summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25b37dffc0b62743db0b4b43e53fe13e57694f5b (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: Martin Sandsmark <martin.sandsmark@kde.org>

pkgname=schiffbruch-git
pkgver=127.83a49b0
pkgrel=2
pkgdesc='Castaway game of building, strategy and adventure played with a two-dimensional view.'
arch=('x86_64' 'i686')
url='https://github.com/sandsmark/schiffbruch'
license=('CCPL')
depends=('sfml')
makedepends=('git')
conflicts=(schiffbruch)
provides=(schiffbruch)
source=('git+https://github.com/sandsmark/schiffbruch.git')
md5sums=('SKIP')

pkgver() {
    cd schiffbruch
    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    mkdir -p build
}

build() {
    cd build
    cmake ../schiffbruch \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \

    make
}


package() {
    install -Dm644 "schiffbruch/README.md" "${pkgdir}/usr/share/doc/README.md"

    cd build
    make DESTDIR="$pkgdir" install
}