[arch-commits] Commit in cataclysm-dda/trunk (PKGBUILD)

Kyle Keen kkeen at archlinux.org
Wed Apr 14 23:23:47 UTC 2021


    Date: Wednesday, April 14, 2021 @ 23:23:46
  Author: kkeen
Revision: 918929

upgpkg: cataclysm-dda 0.E.3-2 FS#62023, lua, lto

Modified:
  cataclysm-dda/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-14 23:18:08 UTC (rev 918928)
+++ PKGBUILD	2021-04-14 23:23:46 UTC (rev 918929)
@@ -5,7 +5,7 @@
 pkgname=cataclysm-dda
 pkgver=0.E.3
 _pkgver=0.E-3
-pkgrel=1
+pkgrel=2
 pkgdesc="A post-apocalyptic roguelike."
 #url="http://cataclysmrl.blogspot.com/"
 #url="http://www.cataclysm.glyphgryph.com/"
@@ -13,7 +13,7 @@
 url="https://cataclysmdda.org/"
 arch=('x86_64')
 license=("CCPL:by-sa")
-depends=('ncurses' 'lua' 'hicolor-icon-theme' 'gettext')
+depends=('ncurses' 'hicolor-icon-theme' 'gettext')
 makedepends=('sdl2_image' 'sdl2_ttf' 'sdl2_mixer' 'freetype2' 'astyle')
 source=("$pkgname-$_pkgver.tar.gz::https://github.com/CleverRaven/Cataclysm-DDA/archive/$_pkgver.tar.gz")
 md5sums=('570177e7549168b648567c11f216c6c2')
@@ -22,7 +22,6 @@
   cd "Cataclysm-DDA-$_pkgver"
   sed -i 's/-Werror//' Makefile
   sed -i 's/ncursesw5-config/ncursesw6-config/' Makefile
-  #sed -i 's|"\(l.*h\)"|"lua5.1/\1"|' src/catalua.{h,cpp}
   sed -i 's/shell git/shell false/' Makefile
 }
 
@@ -31,15 +30,15 @@
 
   # tests "ifdef TILES" so "TILES=0" will enable tiles!
   # DYNAMIC_LINKING appears to be a windows flag?
-  make PREFIX=/usr RELEASE=1 USE_XDG_DIR=1 BACKTRACE=0 ZLEVELS=1 LUA=1
-  make PREFIX=/usr RELEASE=1 USE_XDG_DIR=1 BACKTRACE=0 ZLEVELS=1 LUA=1 TILES=1 SOUND=1
-  #LUA_BINARY="/usr/bin/lua5.1"
+  make PREFIX=/usr RELEASE=1 USE_XDG_DIR=1 BACKTRACE=0 ZLEVELS=1 LTO=1 LOCALIZE=1 LANGUAGES=all
+  make PREFIX=/usr RELEASE=1 USE_XDG_DIR=1 BACKTRACE=0 ZLEVELS=1 LTO=1 LOCALIZE=1 LANGUAGES=all TILES=1 SOUND=1
+  ./lang/compile_mo.sh
 }
 
 package_cataclysm-dda() {
   cd "Cataclysm-DDA-$_pkgver"
 
-  make DESTDIR="$pkgdir" PREFIX="/usr" RELEASE=1 ZLEVELS=1 USE_HOME_DIR=1 LUA=1 install
+  make DESTDIR="$pkgdir" PREFIX="/usr" RELEASE=1 ZLEVELS=1 USE_HOME_DIR=1 LTO=1 LOCALIZE=1 LANGUAGES=all install
 
   # Docs
   install -d "$pkgdir/usr/share/doc/cataclysm-dda"
@@ -50,6 +49,17 @@
 
   # License
   install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  # Languages
+  cd lang/mo
+  for i in *; do
+    install -d "${pkgdir}/usr/share/locale/${i}/LC_MESSAGES"
+    cp "${i}/LC_MESSAGES/cataclysm-dda.mo" "${pkgdir}/usr/share/locale/${i}/LC_MESSAGES"
+  done
+ 
+  # Help
+  cd ./../..
+  cp -r --no-preserve=ownership "./data/help" "${pkgdir}/usr/share/${pkgname}/"
 }
 
 package_cataclysm-dda-tiles() {
@@ -57,7 +67,7 @@
   depends=('cataclysm-dda' 'sdl2_image' 'sdl2_ttf' 'freetype2' 'sdl2_mixer')
   cd "Cataclysm-DDA-$_pkgver"
 
-  make DESTDIR="$pkgdir" PREFIX="/usr" RELEASE=1 ZLEVELS=1 LUA=1 TILES=1 SOUND=1 install
+  make DESTDIR="$pkgdir" PREFIX="/usr" RELEASE=1 ZLEVELS=1 TILES=1 SOUND=1 LTO=1 LOCALIZE=1 LANGUAGES=all install
 
   # Icon
   install -D 'data/osx/AppIcon.iconset/icon_128x128.png' "$pkgdir/usr/share/icons/hicolor/128x128/apps/cataclysm-dda.png"



More information about the arch-commits mailing list