# Maintainer (Arch): schuay # Contributor (Arch): Mike Sampson # Contributor (Arch): Adrian Stratulat # Contributor (Arch): Anton Bazhenov # Contributor (Arch): KillaB # Contributor (Arch): Callan Barrett # Contributor (Arch): Christian Schmidt # Contributor (Arch): Sebastian Sareyko # Maintainer: Omar Vega Ramos # Contributor: Isaac David # Contributor: André Silva # Contributor: Márcio Silva # parabola changes and rationale: # - removed nonfree artwork and sound effects pkgname=angband pkgver=4.1.2 pkgrel=1.parabola1 pkgdesc="A roguelike dungeon exploration game based on the writings of JRR Tolkien, without nonfree artwork and sound effects" arch=('x86_64' 'i686' 'armv7h') url="http://rephial.org/" license=('GPL2' 'custom') depends=('sdl_image' 'sdl_ttf' 'sdl_mixer' 'ncurses') makedepends=('python-docutils') source=("http://rephial.org/downloads/${pkgver:0:3}/${pkgname}-${pkgver}.tar.gz" "libre.patch") prepare() { cd "${srcdir}/angband-${pkgver}" # Fix detection of ncurses config script for ncurses 6.0 sed -i 's/ncursesw5-config/ncursesw6-config/g' acinclude.m4 # remove nonfree artwork and sound effects rm -v lib/sounds/*.mp3 rm -v lib/tiles/shockbolt/64x64.png patch -Np1 -i ../libre.patch } build() { cd "${srcdir}/angband-${pkgver}" ./autogen.sh ./configure \ --prefix=/usr \ --bindir=/usr/bin \ --sysconfdir=/usr/share/angband \ --with-configpath=/usr/share/angband \ --with-libpath=/usr/share/angband \ --enable-gtk \ --enable-sdl \ --enable-sdl-mixer make } package() { cd "${srcdir}/angband-${pkgver}" make DESTDIR="${pkgdir}" install rm -f "${pkgdir}/usr/share/angband/*/delete.me" install -Dm644 copying.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" } md5sums=('d5499e26f59beb745d68a66d67050fc6' 'e5c50ec178e2ff617a00b3d7a10ea803')