blob: 792ed4e90ab676ad4657d4c9b65825ff07f03b97 (
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
|
# Maintainer: Reihar <reihar@necronomicon.fr>
# Contributor: schuay <jakob.gruber@gmail.com>
# Contributor: Mike Sampson <mike at sambodata dot com>
# Contributor: Adrian Stratulat <adrian.stratulat at inboxcom>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: KillaB <xGenoBlast@gmail.com>
# Contributor: Callan Barrett <wizzomafizzo@gmail.com>
# Contributor: Christian Schmidt <xmucknertx@googlemail.com>
# Contributor: Sebastian Sareyko <public@nooms.de>
_pkgname=angband
pkgname=angband-ncurses
pkgver=4.2.5
pkgrel=0
pkgdesc="A roguelike dungeon exploration game based on the writings of JRR Tolkien (ncurses-only)"
arch=('i686' 'x86_64' 'armv7h')
url="http://rephial.org/"
license=('GPL2' 'custom')
depends=('ncurses')
makedepends=('python-docutils'
#'texlive-core' #Uncomment if you want a pdf manual. That's quite the dependency, don't you think?
'autoconf' 'automake')
conflicts=('angband' 'angband-git')
source=(
"${_pkgname}-${pkgver}.tar.gz::https://github.com/${_pkgname}/${_pkgname}/releases/download/${pkgver}/${_pkgname^}-${pkgver}.tar.gz"
# "http://rephial.org/downloads/${pkgver:0:3}/${_pkgname}-${pkgver}.tar.gz"
)
install=angband-ncurses.install
prepare() {
mv "${srcdir}/${_pkgname^}-${pkgver}" "${srcdir}/${_pkgname}-${pkgver}"
cd "${srcdir}/${_pkgname}-${pkgver}"
# Fix detection of ncurses config script for ncurses 6.0
sed -i 's/ncursesw5-config/ncursesw6-config/g' acinclude.m4
}
build() {
cd "${srcdir}/${_pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--bindir=/usr/bin \
--sysconfdir=/usr/share/angband \
--with-configpath=/usr/share/angband \
--with-libpath=/usr/share/angband \
--disable-x11
make
}
package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm -f "${pkgdir}/usr/share/${_pkgname}/*/delete.me"
rm -R "${pkgdir}"/usr/share/angband/{icons,sounds}
install -Dm644 docs/copying.rst "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
}
sha256sums=('c4cacbdf28f726fcb1a0b30b8763100fb06f88dbb570e955232e41d83e0718a6')
|