Date: Saturday, November 26, 2016 @ 17:25:40 Author: foutrelis Revision: 196930
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: openttd/repos/community-staging-i686/ openttd/repos/community-staging-i686/PKGBUILD (from rev 196929, openttd/trunk/PKGBUILD) openttd/repos/community-staging-i686/openttd-1.5.3-gcc6.patch (from rev 196929, openttd/trunk/openttd-1.5.3-gcc6.patch) openttd/repos/community-staging-x86_64/ openttd/repos/community-staging-x86_64/PKGBUILD (from rev 196929, openttd/trunk/PKGBUILD) openttd/repos/community-staging-x86_64/openttd-1.5.3-gcc6.patch (from rev 196929, openttd/trunk/openttd-1.5.3-gcc6.patch) ---------------------------------------------------+ community-staging-i686/PKGBUILD | 46 ++++++++++++++++++++ community-staging-i686/openttd-1.5.3-gcc6.patch | 11 ++++ community-staging-x86_64/PKGBUILD | 46 ++++++++++++++++++++ community-staging-x86_64/openttd-1.5.3-gcc6.patch | 11 ++++ 4 files changed, 114 insertions(+) Copied: openttd/repos/community-staging-i686/PKGBUILD (from rev 196929, openttd/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2016-11-26 17:25:40 UTC (rev 196930) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Vesa Kaihlavirta <ve...@iki.fi> + +pkgname=openttd +pkgver=1.6.1 +pkgrel=2 +pkgdesc='An engine for running Transport Tycoon Deluxe.' +arch=('i686' 'x86_64') +url='http://www.openttd.org' +license=('GPL') +depends=('libpng' 'sdl' 'icu' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz') +optdepends=('openttd-opengfx: free graphics' + 'openttd-opensfx: free soundset') +source=("http://binaries.openttd.org/releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz" + openttd-1.5.3-gcc6.patch) +sha256sums=('9b08996e31c3485ef8dedfa1ab65147091593f3f11bd51eb7662ce5ea41363aa' + '3e9652e1401150c287b71595afbf268dc4379908519d7939ec4e46548026b7e9') + +prepare() { + cd ${pkgname}-${pkgver} + + # patch from fedora + patch -Np1 -i ../openttd-1.5.3-gcc6.patch +} + +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 +} Copied: openttd/repos/community-staging-i686/openttd-1.5.3-gcc6.patch (from rev 196929, openttd/trunk/openttd-1.5.3-gcc6.patch) =================================================================== --- community-staging-i686/openttd-1.5.3-gcc6.patch (rev 0) +++ community-staging-i686/openttd-1.5.3-gcc6.patch 2016-11-26 17:25:40 UTC (rev 196930) @@ -0,0 +1,11 @@ +--- openttd-1.5.3/src/safeguards.h.orig 2016-02-02 16:21:10.378533175 +0000 ++++ openttd-1.5.3/src/safeguards.h 2016-02-02 16:21:15.269555568 +0000 +@@ -21,6 +21,8 @@ + #ifndef SAFEGUARDS_H + #define SAFEGUARDS_H + ++#include <stdlib.h> ++ + /* Use MallocT instead. */ + #define malloc SAFEGUARD_DO_NOT_USE_THIS_METHOD + Copied: openttd/repos/community-staging-x86_64/PKGBUILD (from rev 196929, openttd/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2016-11-26 17:25:40 UTC (rev 196930) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Vesa Kaihlavirta <ve...@iki.fi> + +pkgname=openttd +pkgver=1.6.1 +pkgrel=2 +pkgdesc='An engine for running Transport Tycoon Deluxe.' +arch=('i686' 'x86_64') +url='http://www.openttd.org' +license=('GPL') +depends=('libpng' 'sdl' 'icu' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz') +optdepends=('openttd-opengfx: free graphics' + 'openttd-opensfx: free soundset') +source=("http://binaries.openttd.org/releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz" + openttd-1.5.3-gcc6.patch) +sha256sums=('9b08996e31c3485ef8dedfa1ab65147091593f3f11bd51eb7662ce5ea41363aa' + '3e9652e1401150c287b71595afbf268dc4379908519d7939ec4e46548026b7e9') + +prepare() { + cd ${pkgname}-${pkgver} + + # patch from fedora + patch -Np1 -i ../openttd-1.5.3-gcc6.patch +} + +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 +} Copied: openttd/repos/community-staging-x86_64/openttd-1.5.3-gcc6.patch (from rev 196929, openttd/trunk/openttd-1.5.3-gcc6.patch) =================================================================== --- community-staging-x86_64/openttd-1.5.3-gcc6.patch (rev 0) +++ community-staging-x86_64/openttd-1.5.3-gcc6.patch 2016-11-26 17:25:40 UTC (rev 196930) @@ -0,0 +1,11 @@ +--- openttd-1.5.3/src/safeguards.h.orig 2016-02-02 16:21:10.378533175 +0000 ++++ openttd-1.5.3/src/safeguards.h 2016-02-02 16:21:15.269555568 +0000 +@@ -21,6 +21,8 @@ + #ifndef SAFEGUARDS_H + #define SAFEGUARDS_H + ++#include <stdlib.h> ++ + /* Use MallocT instead. */ + #define malloc SAFEGUARD_DO_NOT_USE_THIS_METHOD +