summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f8303ad2d031e603e43936e70f7407795fa5139 (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
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>

pkgname=lostlabyrinth
pkgver=5.2.0
pkgrel=1
pkgdesc="RPG turn based game"
arch=('i686' 'x86_64')
url="http://www.lostlabyrinth.com/"
license=('GPL')
depends=('desktop-file-utils' 'libpng' 'sdl_gfx' 'sdl_image' 'sdl_ttf' 'sdl_mixer')
install=$pkgname.install

if [ "$CARCH" = x86_64 ]
  then
    source=(http://www.lostlabyrinth.com/download_${pkgver}/${pkgname}_${pkgver}_64x.tar.gz \
            $pkgname.desktop \
            $pkgname.sh)
md5sums=('2e4f076b016d51159725c466f9b270be'
         '8feeeb9c84fdfcbc78875c6938e80c0c'
         'ea650ff17191f4adff8bcf7b8a2cf439')
  else
    source=(http://www.lostlabyrinth.com/download_${pkgver}/${pkgname}_${pkgver}.tar.gz \
            $pkgname.desktop \
            $pkgname.sh)
md5sums=('ef88eff10c3477ddd6aa83fbf4cc7e59'
         '8feeeb9c84fdfcbc78875c6938e80c0c'
         'ea650ff17191f4adff8bcf7b8a2cf439')
fi

package () {
  cd "${srcdir}"/laby_$pkgver

  install -d -m777 "${pkgdir}"/usr/share/$pkgname
  cp -av * "${pkgdir}"/usr/share/$pkgname/
  install -D -m755 "${srcdir}"/$pkgname.sh "${pkgdir}"/usr/bin/$pkgname

#fixing permissions
  find "${pkgdir}"/usr/share/$pkgname -type f -exec chmod 664 "{}" \;
  find "${pkgdir}"/usr/share/$pkgname -type f -exec chown root:users "{}" \;
  chmod 755 "${pkgdir}"/usr/share/$pkgname/laby

#.desktop file + icon
  install -D -m644 "${srcdir}"/$pkgname.desktop \
    "${pkgdir}"/usr/share/applications/$pkgname.desktop
  install -D -m644 "${srcdir}"/laby_$pkgver/laby.xpm \
    "${pkgdir}"/usr/share/pixmaps/$pkgname.xpm
}