blob: 169d510c2044248896ad0f5f6f6a2c6f295f2c95 (
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=freeaoe-git
pkgver=1437.7e7405f
pkgrel=1
pkgdesc='A free engine capable of running Age of Kings.'
arch=('x86_64' 'i686')
url='https://github.com/sandsmark/freeaoe'
license=('GPL3')
depends=("genieutils-git>=709" 'sfml')
makedepends=('git' 'miniaudio-git>=2049')
conflicts=(freeaoe)
provides=(freeaoe)
optdepends=('ageofconquerors-trial-data: Game data files')
source=('git+https://github.com/sandsmark/freeaoe.git')
md5sums=('SKIP')
pkgver() {
cd freeaoe
printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
}
build() {
cd build
cmake ../freeaoe \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDEFAULT_DATA_PATH=/usr/share/ageofconquerors-trial/ \
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
|