-
-
Save JeffCarpenter/ffe835d2af72a2e7da0d to your computer and use it in GitHub Desktop.
corsix-th 0.50-1 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Gaetan Bisson <bisson@archlinux.org> | |
pkgname=corsix-th | |
pkgver=0.50 | |
pkgrel=1 | |
pkgdesc='Reimplementation of the game engine of Theme Hospital' | |
url='https://github.com/CorsixTH/CorsixTH/' | |
arch=('i686' 'x86_64' 'armv7h') | |
license=('MIT') | |
makedepends=('cmake') | |
depends=('lua51' 'lua51-lpeg' 'lua51-filesystem' 'sdl2_mixer' 'ffmpeg' 'timidity-freepats') | |
source=("${url}archive/v${pkgver}.tar.gz" | |
'bin') | |
sha1sums=('a12708b87d4aba75179f2324f7c82e8eb080625b' | |
'7fd6ae8db366b7f9c4671708e8ea7beb48f1bea3') | |
# If you do not have a copy of Theme Hospital, | |
# you can download the data files of the demo: | |
# http://th.corsix.org/Demo.zip | |
build() { | |
cd "${srcdir}/CorsixTH-${pkgver}" | |
cmake \ | |
-D LUA_INCLUDE_DIR=/usr/include/lua5.1 \ | |
-D LUA_LIBRARY=/usr/lib/liblua5.1.so \ | |
-D CMAKE_INSTALL_PREFIX=/usr/share/ \ | |
-D CMAKE_BUILD_TYPE=Release \ | |
-Wno-dev . | |
cd CorsixTH | |
make | |
} | |
package() { | |
cd "${srcdir}/CorsixTH-${pkgver}/CorsixTH" | |
make DESTDIR="${pkgdir}" install | |
install -Dm755 ../../bin "${pkgdir}/usr/bin/CorsixTH" | |
install -Dm644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" | |
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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment