summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 57574095f9f96f928e76d163577f048adb60bde6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Maintainer: jose <jose1711 [at] gmail (dot) com>

pkgname=familyfarm
pkgver=1.3.4
pkgrel=2
pkgdesc="tycoon game in the setting of 19th century farmsteads (full)"
arch=('i686' 'x86_64')
url="http://www.familyfarmgame.com"
license=("commercial")
source=('file://FamilyFarm.Release.tgz')
md5sums=('65f078225d7b4a660bf2c4c5d526173e')
options=(!strip)

package() {
  mkdir -p $pkgdir/usr/{share/familyfarm,bin}
  cd $srcdir/${pkgname}
  /bin/tar cf - * | ( cd $pkgdir/usr/share/familyfarm; tar xfp - )
  sed -i -e 's:%%exepath%%:/usr/bin/familyfarm:' -e 's:%%iconpath%%:/usr/share/familyfarm/ui/GLX_icon.png:' scripts/FamilyFarm.desktop
  sed -i 's/prog_dir=.*/prog_dir=$(dirname $(readlink -f $0))/' ${pkgdir}/usr/share/familyfarm/FamilyFarm.sh
  install -D -m644 scripts/FamilyFarm.desktop ${pkgdir}/usr/share/applications/familyfarm.desktop
  ln -s /usr/share/familyfarm/FamilyFarm.sh ${pkgdir}/usr/bin/familyfarm
}