blob: 054f676c009f2e708e512d6850c55b3dc6348f2d (
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
|
pkgname=opendune
_pkgname=OpenDUNE
pkgver=0.9
pkgrel=4
pkgdesc="Open source re-creation of the popular game Dune II"
arch=('i686' 'x86_64')
url="http://opendune.org"
license=('GPL2')
depends=('sdl2' 'sdl2_image' 'alsa-lib' 'hicolor-icon-theme')
makedepends=('gendesk')
conflicts=('opendune-git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/OpenDUNE/OpenDUNE/archive/$pkgver.tar.gz")
sha256sums=('8d5ed67669df1f17a44c097d9b6bee4e0623ce2a37f11938ce9cd77de546d06c')
prepare() {
gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
cd "$srcdir/$_pkgname-$pkgver"
# Version information. Need to build game
echo "${pkgver} 0 ${pkgver}" > .ottdrev
}
build() {
cd "$srcdir/$_pkgname-$pkgver"
./configure --prefix-dir=/usr --binary-dir=bin
make
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make INSTALL_DIR="$pkgdir" install
# install sample config and desktop file
install -m644 bin/opendune.ini.sample "$pkgdir"/usr/share/doc/opendune
install -Dm644 "${srcdir}/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
}
|