blob: 86e8f116fb69a631b074c719d37bcbb447dd6c52 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Alexander Jacocks <alexander@redhat.com>
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Benjamin Hodgetts <ben@xnode.org>
pkgname=1oom-git
_pkgname=1oom
pkgver=r1084.63002716
pkgrel=2
pkgdesc="1oom is a Master of Orion (1993) game engine recreation."
arch=(x86_64)
url=https://github.com/1oom-fork/1oom
license=('GPL2')
depends=(sdl2 sdl2_mixer libsamplerate soundfont-fluid)
makedepends=(git)
provides=(1oom)
conflicts=(1oom)
source=( 'git+https://github.com/1oom-fork/1oom.git'
'Master_of_Orion_cover.png'
'1oom.desktop'
'1oom_classic_sdl2.sh' )
md5sums=('SKIP'
'49248e72b7ddc5209cca2c1c61099d85'
'ccac2feb67cecfc30b8156edf106b7ca'
'41b52627b2d52b477adcbc2a9a627b37')
pkgver() {
cd "${srcdir}/${_pkgname}"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd ${_pkgname}
autoreconf -fi
test -d build-native || mkdir build-native
cd build-native
../configure --prefix=/usr
{ test "$(nproc)" -gt 1 && make -j"$(nproc)" ;} || make
}
package() {
cd "${srcdir}/${_pkgname}/build-native"
make PREFIX="/usr" DESTDIR="${pkgdir}" install
# install docs
cd "${srcdir}/${_pkgname}/doc"
mkdir -p "$pkgdir/usr/share/doc/${_pkgname}"
cp *.txt "$pkgdir/usr/share/doc/${_pkgname}/"
cd ..
cp AUTHORS CHANGES COMPILING COPYING HACKING MIRRORS NEWS PHILOSOPHY README.md "$pkgdir/usr/share/doc/${_pkgname}/"
# create storage directory for MOO data
mkdir -p "$pkgdir/usr/share/1oom"
# install launch script
mv "$pkgdir/usr/bin/1oom_classic_sdl2" "$pkgdir/usr/bin/1oom_classic_sdl2-bin"
install -m 0755 "${srcdir}/1oom_classic_sdl2.sh" "$pkgdir/usr/bin/1oom_classic_sdl2"
# install icon
install -Dm 0644 ${srcdir}/Master_of_Orion_cover.png $pkgdir/usr/share/icons/hicolor/256x256/apps/${_pkgname}.png
# install desktop file
install -Dm644 ${srcdir}/${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop
}
|