PKGBUILD 1.35 KB
Newer Older
1 2 3
#
# Games Packages for Chakra, part of chakra-project.org
#
Daniele Cocca's avatar
Daniele Cocca committed
4 5 6 7
# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>

pkgname=lincity-ng
pkgver=2.0
8
pkgrel=5
9
pkgdesc="LinCity-NG is a city simulation game, a polished and improved version of LinCity."
10 11
arch=('x86_64')
url="http://sourceforge.net/projects/lincity-ng.berlios"
Daniele Cocca's avatar
Daniele Cocca committed
12
license=('GPL')
13
depends=('mesa' 'sdl>=1.2.5' 'sdl_mixer>=1.2.4' 'sdl_image>=1.2.3' 'sdl_ttf>=2.0.8' 'sdl_gfx>=2.0.13' 
14
'physfs>=1.0.0' 'zlib>=1.0' 'libxml2>=2.6.11' 'glu')
Giuseppe's avatar
Giuseppe committed
15
categories=('games')
Daniele Cocca's avatar
Daniele Cocca committed
16
makedepends=('ftjam>=2.5')
17 18
#source=("http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.bz2")
source=("http://downloads.sourceforge.net/project/lincity-ng.berlios/$pkgname-$pkgver.tar.bz2")
Daniele Cocca's avatar
Daniele Cocca committed
19 20 21
md5sums=('1bd0f58e0f2b131d70044f4230600ed1')

build() {
22
  cd "${srcdir}"
23
  
24
  msg "Getting Italian translation files"
25 26
  git clone --depth 1 https://github.com/hamen/sannioglug-lincity-ng-ita.git it

27 28 29
  msg "Starting actual build"
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
Daniele Cocca's avatar
Daniele Cocca committed
30 31 32 33
  jam
}

package() {
34 35
  cd "${srcdir}/${pkgname}-${pkgver}"
  jam DESTDIR="${pkgdir}" install
Daniele Cocca's avatar
Daniele Cocca committed
36

37
  # Italian translation files installation.
38 39 40 41
  cd "${srcdir}/it"
  install locale/it.po     "${pkgdir}/usr/share/${pkgname}/locale/it.po"
  install locale/gui/it.po "${pkgdir}/usr/share/${pkgname}/locale/gui/it.po"
  cp -R help/it            "${pkgdir}/usr/share/${pkgname}/help/it"
42
}