blob: 28c40ba15296566f85ff8a863803138067cbab1a (
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: Gustavo Ramos Rehermann (wallabra) <rehermann6046@gmail.com>
pkgname=nuvie-git # '-bzr', '-git', '-hg' or '-svn'
pkgver=r1988.350c89b5
pkgrel=1
pkgdesc="A modern open-source engine for Ultima 6, Martian Dreams, and Savage Empire"
arch=(x86_64)
url="https://github.com/nuvie/nuvie"
license=('GPL-2.0-only')
groups=()
depends=(sdl2)
makedepends=('git' cmake) # 'bzr', 'git', 'mercurial' or 'subversion'
provides=(ultima6)
conflicts=(nuvie)
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+https://github.com/nuvie/nuvie.git")
noextract=()
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir"
local cmake_options=(
-B build
-S ${pkgname%-git}
-W no-dev
-D CMAKE_BUILD_TYPE=None
-D CMAKE_INSTALL_PREFIX=/usr
)
cmake "${cmake_options[@]}"
cmake --build build
}
package() {
# For some reason, the CMake way to install isn't working.
# Hit me up in the AUR comments if you know how to fix this!
#DESTDIR="$pkgdir" cmake --install build
install -D -m755 "$srcdir/build/nuvie" "$pkgdir/usr/bin/nuvie"
}
|