desktop/corsix-th/PKGBUILD
Adrian Chaves Fernandez (Gallaecio) cbe29eb87c Corsix TH 0.20
2013-03-24 14:47:40 +00:00

47 lines
1.1 KiB
Bash

#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=corsix-th
_pkgname=CorsixTH
pkgver=0.20
_pkgver=$pkgver
pkgrel=1
pkgdesc='Reimplementation of the game engine of Theme Hospital.'
arch=('i686' 'x86_64')
url='http://corsix-th.googlecode.com'
license=('MIT')
depends=('lua' 'sdl_mixer' 'timidity++')
categories=('games')
makedepends=('cmake')
install=$pkgname.install
source=("$url/files/$_pkgname-$_pkgver-Source.tar.gz"
"$pkgname.sh")
sha1sums=('236ed7cd898a8676d9d3709571d5b13c4033e6a3'
'7fd6ae8db366b7f9c4671708e8ea7beb48f1bea3')
build() {
cd $srcdir/
mkdir -p build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/share \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
}
package() {
cd $srcdir/build
make DESTDIR=$pkgdir install
# “Link” to de actual executable:
install -Dm755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
# License:
install -Dm644 $srcdir/CorsixTH/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/License.txt
}