desktop/corsix-th/PKGBUILD

49 lines
1.8 KiB
Bash
Raw Normal View History

2011-01-04 10:12:16 +08:00
pkgname=corsix-th
_pkgname=CorsixTH
2016-06-12 00:01:46 +08:00
pkgver=0.60
2012-04-16 21:16:10 +08:00
_pkgver=$pkgver
pkgrel=3
2011-01-04 10:12:16 +08:00
pkgdesc='Reimplementation of the game engine of Theme Hospital.'
2015-12-05 22:10:39 +08:00
arch=('x86_64')
url='https://github.com/CorsixTH/CorsixTH'
2011-01-04 10:12:16 +08:00
license=('MIT')
2016-06-12 00:01:46 +08:00
depends=('ffmpeg' 'lua' 'lua-lpeg' 'lua-filesystem' 'luajit' 'sdl2_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"
2015-12-05 22:10:39 +08:00
$pkgname-fix-parameters-to-sws_scale.patch::"https://github.com/CorsixTH/CorsixTH/commit/4ae56e100911c1763cb9fd9a4b8647e323ecc032.patch"
2016-06-12 00:01:46 +08:00
"$pkgname.sh"
"org.corsixth.corsixth.desktop")
sha256sums=('f5ff7839b6469f1da39804de1df0a86e57b45620c26f044a1700e43d8da19ce9'
2015-12-05 22:10:39 +08:00
'65161006dfc0aaff77d0beffd3894203ca2f304d0db71f54329859fa08c712ab'
2016-06-12 00:01:46 +08:00
'3614197a30498774fff4055ee54d82a812a8b88eba353b70c3288a09ff700158'
'3c53c5888d691ae76a2876eae71220629ef5c91608f559ea15e0ce9e95a16f5d')
2015-12-05 22:10:39 +08:00
2016-06-12 00:01:46 +08:00
#prepare() {
2015-12-05 22:10:39 +08:00
# fix crash in ffmpeg 2.8+
# patch -d CorsixTH-$pkgver -Np1 < $pkgname-fix-parameters-to-sws_scale.patch
2016-06-12 00:01:46 +08:00
#}
2011-01-04 10:12:16 +08:00
build() {
2015-12-05 22:10:39 +08:00
cd CorsixTH-$pkgver
cmake -DCMAKE_BUILD_TYPE=Release -Wno-dev \
-DLUA_PROGRAM_PATH=/usr/bin/lua -DLUA_INCLUDE_DIR=/usr/include -DLUA_LIBRARY=/usr/lib/liblua.so \
-DCMAKE_INSTALL_PREFIX=/usr/share/ .
2014-12-20 14:13:12 +08:00
cd CorsixTH
2011-01-04 10:12:16 +08:00
make
}
2015-12-05 22:10:39 +08:00
2011-01-04 10:12:16 +08:00
package() {
2015-12-05 22:10:39 +08:00
make -C CorsixTH-$pkgver/CorsixTH DESTDIR="$pkgdir/" install
# launcher
2016-06-12 00:01:46 +08:00
install -Dm0755 $pkgname.sh "$pkgdir"/usr/bin/corsixth
2015-12-05 22:10:39 +08:00
# license
install -Dm0644 CorsixTH-$pkgver/LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
# .desktop integration
2016-06-12 00:01:46 +08:00
install -Dm0644 org.corsixth.corsixth.desktop "$pkgdir"/usr/share/applications/org.corsixth.corsixth.desktop
# icon
install -Dm0644 CorsixTH-$pkgver/CorsixTH/Original_Logo.svg "$pkgdir"/usr/share/pixmaps/corsixth.svg
2015-12-05 22:10:39 +08:00
}