updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / umoria / PKGBUILD
blob7e834f5ef8d7ead5306c6e50c1b5b5500d1ef624
1 # Maintainer: Beej Jorgensen <beej@beej.us>
2 # Contributor: Beej Jorgensen <beej@beej.us>
4 # The actual real sources are hosted somewhere under
5 # ftp://ftp.greyhelm.com/pub/Games/Moria/source/
6 # but this site is consistently down.  So the beej.us mirror
7 # is used instead
9 pkgname=umoria
10 pkgver=5.5.2
11 pkgrel=3
12 pkgdesc="Rogue-like dungeon crawler"
13 arch=('i686' 'x86_64')
14 url="http://www-math.bgsu.edu/~grabine/moria.html"
15 license=('custom')
16 depends=('ncurses')
17 makedepends=('gzip')
18 backup=("usr/share/${pkgname}/files/scores")
19 source=(
20   'license.txt'
21   "${pkgname}-aur.patch"
22   "http://beej.us/moria/files/source/um${pkgver}.tar.Z"
24 install=${pkgname}.install
25 md5sums=('36baf52bdb15df8e4bab603dedb6f021'
26          '768b281e30aeb390184abfa76c1075f0'
27          '04a2852864302c702e82992023d97184')
29 build() {
30   cd "$srcdir/$pkgname"
32   patch -Np1 < ../${pkgname}-aur.patch
34   cd source
35   cp ../unix/* .
36   make
37   cd ..
39   # binary
40   install -D -m0755 source/moria ${pkgdir}/usr/bin/moria
42   # support files
43   install -d -m0755 ${pkgdir}/usr/share/${pkgname}/files
44   install -m0644 files/* ${pkgdir}/usr/share/${pkgname}/files
46   # set permissions on scores file (must be in games group to use)
47   chgrp games ${pkgdir}/usr/share/${pkgname}/files/scores
48   chmod 664 ${pkgdir}/usr/share/${pkgname}/files/scores
50   # documentation
51   install -d -m0755 ${pkgdir}/usr/share/doc/${pkgname}/doc
52   install -m0644 doc/* ${pkgdir}/usr/share/doc/${pkgname}/doc
53   install -m0644 CHANGES ${pkgdir}/usr/share/doc/${pkgname}
54   install -m0644 OChanges ${pkgdir}/usr/share/doc/${pkgname}
55   install -m0644 OOChanges ${pkgdir}/usr/share/doc/${pkgname}
56   install -m0644 ERRORS ${pkgdir}/usr/share/doc/${pkgname}
57   install -m0644 INSTALL ${pkgdir}/usr/share/doc/${pkgname}
58   install -m0644 README ${pkgdir}/usr/share/doc/${pkgname}
60   # man page
61   install -d -m0755 ${pkgdir}/usr/share/man/man6
62   gzip -c doc/moria.6 > ${pkgdir}/usr/share/man/man6/moria.6.gz
64   # custom license
65   install -d -m0755 ${pkgdir}/usr/share/licenses/${pkgname}
66   install -m0644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
69 # vim:set ts=2 sw=2 et: