diff options
-rw-r--r-- | libre/openttd/PKGBUILD | 18 | ||||
-rw-r--r-- | libre/openttd/openttd.install | 17 |
2 files changed, 13 insertions, 22 deletions
diff --git a/libre/openttd/PKGBUILD b/libre/openttd/PKGBUILD index bc5526807..bc1efa10c 100644 --- a/libre/openttd/PKGBUILD +++ b/libre/openttd/PKGBUILD @@ -1,19 +1,27 @@ -# $Id: PKGBUILD 169626 2016-04-07 07:39:33Z lcarlier $ +# $Id: PKGBUILD 174283 2016-05-08 07:02:06Z lcarlier $ # Maintainer (Arch): Vesa Kaihlavirta <vegai@iki.fi> # Maintainer: André Silva <emulatorman@parabola.nu> pkgname=openttd pkgver=1.6.0 -pkgrel=1.parabola1 +pkgrel=2.parabola1 pkgdesc='An engine for running Transport Tycoon Deluxe, without nonfree openttd-opensfx recommendation' arch=('i686' 'x86_64' 'armv7h') 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=('4c12e6b516ffdee20a03ebad80dad85d137130002d6d3e123a568376fe4b4eb2') +source=("http://binaries.openttd.org/releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz" + openttd-1.5.3-gcc6.patch) +sha256sums=('4c12e6b516ffdee20a03ebad80dad85d137130002d6d3e123a568376fe4b4eb2' + '3e9652e1401150c287b71595afbf268dc4379908519d7939ec4e46548026b7e9') + +prepare() { + cd ${pkgname}-${pkgver} + + # patch from fedora + patch -Np1 -i ../openttd-1.5.3-gcc6.patch +} build() { cd ${pkgname}-${pkgver} diff --git a/libre/openttd/openttd.install b/libre/openttd/openttd.install deleted file mode 100644 index 85b22a1c5..000000000 --- a/libre/openttd/openttd.install +++ /dev/null @@ -1,17 +0,0 @@ -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 -} |