summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b6cd7c0e118662da5e4c8ade82aa7802f396d800 (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
# Contributor: zico <zico@dxx-rebirth.com>
# Maintainer: SanskritFritz (gmail)

pkgname=d1x-rebirth
pkgver=0.58.1
pkgrel=2
pkgdesc="An enhanced engine to play with Descent1 data."
arch=('i686' 'x86_64')
url="http://www.dxx-rebirth.com/"
license=('custom:D1x' 'LGPL' 'custom:as-is')
depends=('sdl' 'sdl_mixer' 'mesa' 'physfs')
makedepends=('scons' 'unzip')
install="$pkgname.install"
source=("http://www.dxx-rebirth.com/download/dxx/${pkgname}_v${pkgver}-src.tar.gz"
        "$pkgname.desktop"
        "http://www.dxx-rebirth.com/download/dxx/res/d1xr-hires.dxa"
        "http://www.dxx-rebirth.com/download/dxx/res/d1xr-sc55-music.dxa")
noextract=("d1xr-hires.dxa" "d1xr-sc55-music.dxa")
md5sums=('8f43e66191fdedd0c7ff9278719accf1'
         'ded1f8c2deb3825134e1a984985684cb'
         '7d978ce3875995e54cbf426167e88b94'
         'bf54b45a648052b2531bbb95c001403b')

build() {
	cd "$srcdir/${pkgname}_v${pkgver}-src"
	sed -ie "/^PREFIX =/s|/usr/local/|/usr/|" SConstruct
	scons sharepath="/usr/share/$pkgname"
}

package() {
	mkdir -p "$pkgdir/usr/bin/"
	mkdir -p "$pkgdir/usr/share/$pkgname/"
	mkdir -p "$pkgdir/usr/share/pixmaps/"
	mkdir -p "$pkgdir/usr/share/applications/"
	mkdir -p "$pkgdir/usr/share/licenses/$pkgname/"

	cd $srcdir/${pkgname}_v${pkgver}-src
	install -m755 "$pkgname" "$pkgdir/usr/bin/"

	install -m644 "$srcdir/${pkgname}_v${pkgver}-src/$pkgname.xpm" "$pkgdir/usr/share/pixmaps/"
	install -m644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/"
	install -m644 "$srcdir/${pkgname}_v${pkgver}-src/COPYING.txt" "$pkgdir/usr/share/licenses/$pkgname/"
	install -m644 "$srcdir/d1xr-hires.dxa" "$pkgdir/usr/share/$pkgname/"
	install -m644 "$srcdir/d1xr-sc55-music.dxa" "$pkgdir/usr/share/$pkgname/"
}