blob: df002c2ed2e8b14a7e5244263f408b5f4fddb38d (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Maintainer (Arch): schuay <jakob.gruber@gmail.com>
# Contributor (Arch): Mike Sampson <mike at sambodata dot com>
# Contributor (Arch): Adrian Stratulat <adrian.stratulat at inboxcom>
# Contributor (Arch): Anton Bazhenov <anton.bazhenov at gmail>
# Contributor (Arch): KillaB <xGenoBlast@gmail.com>
# Contributor (Arch): Callan Barrett <wizzomafizzo@gmail.com>
# Contributor (Arch): Christian Schmidt <xmucknertx@googlemail.com>
# Contributor (Arch): Sebastian Sareyko <public@nooms.de>
# Contributor (Hyperbola): André Silva <emulatorman@parabola.nu>
# Contributor (Hyperbola): Márcio Silva <coadde@parabola.nu>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
# Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
pkgname=angband
_pkgname=$pkgname-libre
pkgver=4.1.1
pkgrel=1.parabola1
pkgdesc="A roguelike dungeon exploration game based on the writings of JRR Tolkien, without nonfree artwork and sound effects"
arch=('i686' 'x86_64' 'armv7h')
url="http://rephial.org/"
license=('GPL2' 'custom')
replaces=($_pkgname)
conflicts=($_pkgname)
depends=('sdl_image' 'sdl_ttf' 'sdl_mixer' 'ncurses')
makedepends=('python-docutils')
mksource=("http://rephial.org/downloads/${pkgver:0:3}/${pkgname}-${pkgver}.tar.gz")
source=("https://repo.parabola.nu/other/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" 'libre.patch')
mksource() {
cd "${srcdir}/${pkgname}-${pkgver}"
# remove nonfree stuff from source
rm -v lib/sounds/*.mp3
rm -v lib/tiles/shockbolt/64x64.png
}
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
# Fix detection of ncurses config script for ncurses 6.0
sed -i 's/ncursesw5-config/ncursesw6-config/g' acinclude.m4
# remove nonfree references
patch -Np1 -i ../libre.patch
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
# ld fix for 4.1.0-1.parabola1
sed -i 's/-Wl,-r/& -no-pie/' src/Makefile
./autogen.sh
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--sysconfdir=/usr/share/$pkgname \
--with-configpath=/usr/share/$pkgname \
--with-libpath=/usr/share/$pkgname \
--enable-gtk \
--enable-sdl \
--enable-sdl-mixer
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -f "${pkgdir}/usr/share/$pkgname/*/delete.me"
install -Dm644 copying.txt "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
mksha256sums=('3fd19b109acfbf75a1a4b40eb0110c267ed1d0cc80f6edfb2f377d68add9853f')
sha256sums=('71cb3b6984fb26054dfce72ca36c741d035fb73b045cef8a42d75b234aaad55c'
'fa1524d1a3c5768b9090630d16393274fe007f87f3c0a00c4ffb5fc66e84fee9')
|