mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
37 lines
940 B
Bash
37 lines
940 B
Bash
pkgname=openttd
|
|
pkgver=1.8.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=('e2c09b85ce23d092345055ee530b09a6')
|
|
|
|
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
|
|
}
|