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

pkgname=advancedgenieeditor-git
pkgver=r756.ea2db9c
pkgrel=1
_abiver=10
pkgdesc='A program for editing data of genie files.'
arch=('x86_64' 'i686')
url='http://aok.heavengames.com/blacksmith/showfile.php?fileid=11002'
license=('GPL3')
depends=("genieutils-git>=${_abiver}" 'sfml' 'wxgtk2')
makedepends=('git')
conflicts=(advancedgenieeditor)
provides=(advancedgenieeditor)
source=('git+https://github.com/sandsmark/AGE.git')
md5sums=('SKIP')

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

prepare() {
    mkdir -p build
}

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

    make
}


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