desktop/corsix-th/PKGBUILD

52 lines
1.3 KiB
Bash
Raw Normal View History

2011-01-04 10:12:16 +08:00
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=corsix-th
_pkgname=CorsixTH
2011-05-02 09:14:49 +08:00
pkgver=beta6
_pkgver=Beta6
2011-01-04 10:12:16 +08:00
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++')
2012-03-07 19:00:46 +08:00
categories=('games')
2011-01-04 10:12:16 +08:00
makedepends=('cmake')
install=$pkgname.install
source=("$url/files/$_pkgname-$_pkgver-Source.tar.gz"
"$pkgname.sh")
2011-05-02 09:14:49 +08:00
sha1sums=('120d30f0cabd5589e6935e95d61862c25f827fd7'
2011-01-04 10:12:16 +08:00
'7fd6ae8db366b7f9c4671708e8ea7beb48f1bea3')
build() {
cd $srcdir/$_pkgname-$_pkgver-Source
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/share \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
..
make
# cmake \
# -D CMAKE_INSTALL_PREFIX=/usr/share/ \
# -D CMAKE_BUILD_TYPE=Release \
# -Wno-dev .
}
package() {
cd $srcdir/$_pkgname-$_pkgver-Source/build
make DESTDIR=$pkgdir install
# “Link” to de actual executable:
install -Dm755 $srcdir/$pkgname.sh $pkgdir/usr/bin/$pkgname
# License:
install -Dm644 $srcdir/$_pkgname-$_pkgver-Source/CorsixTH/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/License.txt
}