desktop/openttd/PKGBUILD

37 lines
940 B
Bash
Raw Normal View History

2010-12-07 04:16:42 +08:00
pkgname=openttd
2018-04-30 19:20:14 +08:00
pkgver=1.8.0
2014-08-22 17:00:43 +08:00
pkgrel=1
2011-08-22 14:00:55 +08:00
pkgdesc="An engine for running Transport Tycoon Deluxe or alternative data files"
2014-06-13 19:13:30 +08:00
arch=('x86_64')
2010-12-07 04:16:42 +08:00
url='http://www.openttd.org'
license=('GPL2')
2015-09-24 05:36:36 +08:00
depends=('desktop-file-utils' 'fontconfig' 'hicolor-icon-theme' 'icu' 'libpng' 'sdl' 'xz')
optdepends=('openttd-opengfx: graphic set.'
'openttd-openmsx: music set.'
'openttd-opensfx: sound set.')
conflicts=('openttd-dev' 'openttd-svn')
2012-03-07 19:00:46 +08:00
categories=('games')
source=("http://binaries.openttd.org/releases/$pkgver/$pkgname-$pkgver-source.tar.xz")
2018-04-30 19:20:14 +08:00
md5sums=('e2c09b85ce23d092345055ee530b09a6')
2010-12-07 04:16:42 +08:00
build() {
2014-06-13 19:13:30 +08:00
cd $pkgname-$pkgver
2010-12-07 04:16:42 +08:00
./configure \
--prefix-dir=/usr \
--binary-name=$pkgname \
2010-12-07 04:16:42 +08:00
--binary-dir=bin \
--data-dir=share/$pkgname \
--install-dir=$pkgdir \
--doc-dir=share/doc/$pkgname \
2010-12-07 04:16:42 +08:00
--menu-name="OpenTTD" \
--personal-dir=.$pkgname
2010-12-07 04:16:42 +08:00
make
}
package() {
2014-06-13 19:13:30 +08:00
cd $pkgname-$pkgver
2010-12-07 04:16:42 +08:00
make install
}