summaryrefslogtreecommitdiff
path: root/libre/openttd
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-19 03:12:23 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2015-05-19 06:37:38 -0300
commitc63176dc33a16c7f0dbccf1f3e03da25de508f09 (patch)
treef6cd6994e406c20dbbd9b24b3e333473f8d333b3 /libre/openttd
parent002cc042e7423a1212fb5086a2a487f315ef7fad (diff)
downloadabslibre-c63176dc33a16c7f0dbccf1f3e03da25de508f09.tar.gz
abslibre-c63176dc33a16c7f0dbccf1f3e03da25de508f09.tar.bz2
abslibre-c63176dc33a16c7f0dbccf1f3e03da25de508f09.zip
openttd: add new package to [libre] -> https://labs.parabola.nu/issues/716
Diffstat (limited to 'libre/openttd')
-rw-r--r--libre/openttd/PKGBUILD38
-rw-r--r--libre/openttd/openttd.install17
2 files changed, 55 insertions, 0 deletions
diff --git a/libre/openttd/PKGBUILD b/libre/openttd/PKGBUILD
new file mode 100644
index 000000000..ed984afa9
--- /dev/null
+++ b/libre/openttd/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 130965 2015-04-08 20:31:16Z lcarlier $
+# Maintainer (Arch): Vesa Kaihlavirta <vegai@iki.fi>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=openttd
+pkgver=1.5.0
+pkgrel=1.parabola1
+pkgdesc='An engine for running Transport Tycoon Deluxe, without nonfree openttd-opensfx recommendation'
+arch=('i686' 'x86_64')
+url='http://www.openttd.org'
+license=('GPL')
+depends=('libpng' 'sdl' 'icu' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz')
+install=openttd.install
+optdepends=('openttd-opengfx: free graphics')
+source=("http://binaries.openttd.org/releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz")
+sha256sums=('cb2735c3c94709430c58eb4e8820cd5d26b1a17447c34ca8792bb3432a3f7c2d')
+
+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
+}
diff --git a/libre/openttd/openttd.install b/libre/openttd/openttd.install
new file mode 100644
index 000000000..85b22a1c5
--- /dev/null
+++ b/libre/openttd/openttd.install
@@ -0,0 +1,17 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor > /dev/null 2>&1
+ update-desktop-database > /dev/null 2>&1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ update-desktop-database > /dev/null 2>&1
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor > /dev/null 2>&1
+ update-desktop-database > /dev/null 2>&1
+}