desktop/openttd/PKGBUILD

40 lines
1.0 KiB
Bash
Raw Normal View History

# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
2010-12-07 04:16:42 +08:00
pkgname=openttd
2016-03-16 21:42:03 +08:00
pkgver=1.5.3
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')
changelog=ChangeLog
2012-03-07 19:00:46 +08:00
categories=('games')
source=("http://binaries.openttd.org/releases/$pkgver/$pkgname-$pkgver-source.tar.xz")
2016-03-16 21:42:03 +08:00
md5sums=('d7a07405756ed81d40b8d702e164f61c')
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
}