PKGBUILD 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Maintainer (Arch): Vesa Kaihlavirta <vegai@iki.fi>
  2. # Maintainer (Hyperbola): André Silva <emulatorman@hyperbola.info>
  3. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  4. # parabola changes and rationale:
  5. # - removed recommendation for non-free openttd-opensfx
  6. # - depends on individual icu libraries to prevent upgrade breakages and
  7. # enable Parabola to provide older icu libraries in a separate package to
  8. # make transition easier for Parabola contributors. See the comments in
  9. # the icu-*-compat PKGBUILDs for more details.
  10. pkgname=openttd
  11. pkgver=1.9.3
  12. pkgrel=2
  13. pkgrel+=.parabola7
  14. pkgdesc='An engine for running Transport Tycoon Deluxe.'
  15. arch=('x86_64')
  16. arch+=('i686' 'armv7h')
  17. url='https://www.openttd.org'
  18. license=('GPL')
  19. depends=('libpng' 'sdl' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz' 'fluidsynth')
  20. depends+=('libicui18n.so' 'libicuuc.so')
  21. optdepends=('openttd-opengfx: free graphics')
  22. source=("https://proxy.binaries.openttd.org/openttd-releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz")
  23. sha256sums=('1988e17f5b6f4b8f423c849ef1c579c21f678722ae4440f87b27a5fea6385846')
  24. build() {
  25. cd ${pkgname}-${pkgver}
  26. # http://site.icu-project.org/download/61#TOC-Migration-Issues
  27. CXXFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
  28. ./configure \
  29. --prefix-dir=/usr \
  30. --binary-name=${pkgname} \
  31. --binary-dir=bin \
  32. --data-dir=share/${pkgname} \
  33. --install-dir="${pkgdir}" \
  34. --doc-dir=share/doc/${pkgname} \
  35. --with-fluidsynth \
  36. --menu-name="OpenTTD"
  37. make
  38. }
  39. package() {
  40. cd ${pkgname}-${pkgver}
  41. make install
  42. }