desktop/lincity-ng/PKGBUILD
Francesco Marinucci ee6d451a6e lincity-ng: rebuild
2015-02-19 00:34:17 +00:00

43 lines
1.3 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Daniele Cocca <daniele.cocca@gmail.com>
pkgname=lincity-ng
pkgver=2.0
pkgrel=5
pkgdesc="LinCity-NG is a city simulation game, a polished and improved version of LinCity."
arch=('x86_64')
url="http://sourceforge.net/projects/lincity-ng.berlios"
license=('GPL')
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'
'physfs>=1.0.0' 'zlib>=1.0' 'libxml2>=2.6.11' 'glu')
categories=('games')
makedepends=('ftjam>=2.5')
#source=("http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.bz2")
source=("http://downloads.sourceforge.net/project/lincity-ng.berlios/$pkgname-$pkgver.tar.bz2")
md5sums=('1bd0f58e0f2b131d70044f4230600ed1')
build() {
cd "${srcdir}"
msg "Getting Italian translation files"
git clone --depth 1 https://github.com/hamen/sannioglug-lincity-ng-ita.git it
msg "Starting actual build"
cd "${srcdir}/${pkgname}-${pkgver}"
./configure --prefix=/usr
jam
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
jam DESTDIR="${pkgdir}" install
# Italian translation files installation.
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"
}