summaryrefslogtreecommitdiff
path: root/pcr/nppangband-libre/PKGBUILD
blob: eeb59f6fc0e97aaef8da2ef7a13e9fb30b5c0500 (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
# Maintainer: Israfel <israfel@lavabit.com>
# Original PKGBUILD by James Rayner <iphitus@gmail.com> 
# The Angband "adjust-sound-dir" patch by Chris Carr <rantingman@gmail.com> served as a reference for what files to edit for sound.patch

_pkgname=nppangband
pkgname=nppangband-libre
pkgver=6.1.2
pkgrel=1
pkgdesc="A variant of Angband that attempts to take popular ideas from other variants, without nonfree sound effects"
url="http://forum.nppangband.org/"
replaces=$_pkgname
conflicts=$_pkgname
provides=$_pkgname
depends=('sdl' 'sdl_image' 'sdl_ttf' 'sdl_mixer' 'ncurses' 'libx11' 'freetype2')
source=(http://download.nppangband.org/npp-6.1.2-src.zip sound.patch)
license=('GPLv2 custom')
arch=('i686' 'x86_64')

build() {
	cd $srcdir/npp-6.1.2-src/
	patch -Np1 -i ../sound.patch
	sh autogen.sh
	./configure --enable-sdl
	make
}

package() {  
	cd $srcdir/npp-6.1.2-src/
	make DESTDIR="$pkgdir/" install
}

sha512sums=('e12e05fd8944bb1d7e43b883416009a8e77198ee1ad0ea87480eaafb5f46ecdb218ef0b68876fb77cc2ab490a99f9b9303e02c7db385db6eb8d1d01a48cffdd0'
            '820f4e678543b8f4d5092d6654bb3d4006e039fbc119d9ff5f468c01176497c25579ca2b0d6f6d302b11a3fbfaa6cfcdf89029ff586cda31d97e413cb8b91040')