desktop/corsix-th/PKGBUILD

47 lines
1.4 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>
pkgname=corsix-th
_pkgname=CorsixTH
2014-12-20 14:13:12 +08:00
pkgver=0.30
2012-04-16 21:16:10 +08:00
_pkgver=$pkgver
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')
2014-12-20 14:13:12 +08:00
depends=('ffmpeg' 'lua' 'sdl_mixer' 'timidity++' 'x264')
2012-03-07 19:00:46 +08:00
categories=('games')
2011-01-04 10:12:16 +08:00
makedepends=('cmake')
install=$pkgname.install
2014-12-20 14:13:12 +08:00
source=("https://github.com/CorsixTH/CorsixTH/archive/v${pkgver}.tar.gz"
2011-01-04 10:12:16 +08:00
"$pkgname.sh")
2014-12-20 14:13:12 +08:00
sha1sums=('033644d2115888093f65c683022fb5ad9ea0d74b'
2011-01-04 10:12:16 +08:00
'7fd6ae8db366b7f9c4671708e8ea7beb48f1bea3')
2014-12-20 14:13:12 +08:00
# The code below has been strongly based on
# https://gist.github.com/Rayman2200/8118205
# for version 0.30.
2011-01-04 10:12:16 +08:00
build() {
2014-12-20 14:13:12 +08:00
cd "${srcdir}/CorsixTH-${pkgver}"
# CMake config is broke for corsix-th v0.30, so the LICENSE need to be moved to the right location
mv LICENSE CorsixTH/LICENSE.txt
2012-04-16 21:16:10 +08:00
cmake \
2014-12-20 14:13:12 +08:00
-D CMAKE_INSTALL_PREFIX=/usr/share/ \
-D CMAKE_BUILD_TYPE=Release \
-Wno-dev \
.
cd CorsixTH
2011-01-04 10:12:16 +08:00
make
}
2014-12-20 14:13:12 +08:00
2011-01-04 10:12:16 +08:00
package() {
2014-12-20 14:13:12 +08:00
cd "${srcdir}/CorsixTH-${pkgver}/CorsixTH"
make DESTDIR="${pkgdir}" install
install -Dm755 CorsixTH "${pkgdir}/usr/bin/CorsixTH"
install -Dm644 ../DebianPackage/usr/share/applications/CorsixTH.desktop "${pkgdir}/usr/share/applications/CorsixTH.desktop"
sed -e 's/games/share/g' -i "${pkgdir}/usr/share/applications/CorsixTH.desktop"
}