summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f28428ec90fbbc5c885bfb7f787e55d4588611c3 (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
# Maintainer: SanskritFritz (gmail)
# Contributor: David J. Haines <djhaines at gmx dot com>
# Contributor: Benjamin Hodgetts (Enverex) <ben@xnode.org>

_pkgname=pioneer
pkgname=$_pkgname-bin
pkgver=20190203
pkgrel=1
pkgdesc="A freeform single player space adventure in the spirit of Frontier: Elite II."
arch=('x86_64')
url="http://pioneerspacesim.net/"
license=('GPL')
conflicts=('pioneer' 'pioneer-git')
provides=('pioneer')
depends=('libsigc++' 'libvorbis' 'sdl2_image' 'freetype2' 'libpng')
optdepends=('libtxc_dxtn: may prevent crashes on ATI hardware')
# [ "$CARCH" = "i686" ] && _carch_bits=32
[ "$CARCH" = "x86_64" ] && _carch_bits=64
PKGEXT='.pkg.tar'

source=("$_pkgname.png" "$_pkgname.desktop" "$_pkgname.sh")
# source_i686+=("http://sourceforge.net/projects/pioneerspacesim/files/pioneer-$pkgver-linux32.tar.bz2")
source_x86_64=("https://github.com/pioneerspacesim/pioneer/releases/download/$pkgver/pioneer-$pkgver-linux.tar.gz")

package() {
	install -Dm644 "$_pkgname.desktop" "$pkgdir/usr/share/applications/$_pkgname.desktop"
	install -Dm644 "$_pkgname.png" "$pkgdir/usr/share/pixmaps/$_pkgname.png"
	install -Dm755 "$_pkgname.sh" "$pkgdir/usr/bin/$_pkgname"
	cd "release"
	find . -type d -exec mkdir -p "$pkgdir/usr/share/pioneer/{}" \;
	find . -type f -exec cp '{}' "$pkgdir/usr/share/pioneer/{}" \;
	mkdir -p "$pkgdir/usr/bin"
}

md5sums=('46e51941124eb3cf1af9233820223478'
         '1f05200234c41b4320f59de80534669c'
         '9e61ce70a75f6b9ad0fd5cab5d0b7420')
md5sums_x86_64=('7d9f55710ed7b79e1ca2f4e0d06644a7')
# md5sums_i686=('feee66ae6071fdc0421d028ff43df492')