desktop/openttd/PKGBUILD
2017-04-13 14:39:08 +01:00

37 lines
940 B
Bash

pkgname=openttd
pkgver=1.7.0
pkgrel=1
pkgdesc="An engine for running Transport Tycoon Deluxe or alternative data files"
arch=('x86_64')
url='http://www.openttd.org'
license=('GPL2')
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')
categories=('games')
source=("http://binaries.openttd.org/releases/$pkgver/$pkgname-$pkgver-source.tar.xz")
md5sums=('09cef477ffa77d9c13e8cf1b8083a2d1')
build() {
cd $pkgname-$pkgver
./configure \
--prefix-dir=/usr \
--binary-name=$pkgname \
--binary-dir=bin \
--data-dir=share/$pkgname \
--install-dir=$pkgdir \
--doc-dir=share/doc/$pkgname \
--menu-name="OpenTTD" \
--personal-dir=.$pkgname
make
}
package() {
cd $pkgname-$pkgver
make install
}