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

Laurent Carlier lcarlier at archlinux.org
Sat Dec 14 20:15:30 UTC 2019


    Date: Saturday, December 14, 2019 @ 20:15:29
  Author: lcarlier
Revision: 537695

upgpkg: minetest 5.1.0-2

add postgresql support (FS#56196 FS#62527), fix locale support (FS#62514)

Modified:
  minetest/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-14 20:14:27 UTC (rev 537694)
+++ PKGBUILD	2019-12-14 20:15:29 UTC (rev 537695)
@@ -3,12 +3,12 @@
 
 pkgname=('minetest' 'minetest-server' 'minetest-common')
 pkgver=5.1.0
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url='https://minetest.net/'
 license=('GPL')
-makedepends=('sqlite' 'freetype2' 'leveldb' 'openal' 'libvorbis' 'curl' 'irrlicht'
-             'hicolor-icon-theme' 'cmake' 'hiredis' 'luajit')
+makedepends=('sqlite' 'freetype2' 'leveldb' 'postgresql' 'spatialindex' 'openal' 'libvorbis' 'curl'
+             'irrlicht' 'hicolor-icon-theme' 'cmake' 'hiredis' 'luajit')
 source=($pkgname-$pkgver.tar.gz::https://github.com/minetest/minetest/archive/${pkgver}.tar.gz
         $pkgname-data-$pkgver.tar.gz::https://github.com/minetest/minetest_game/archive/${pkgver}.tar.gz
         minetest.service
@@ -32,6 +32,8 @@
     -DENABLE_GETTEXT=1 \
     -DENABLE_FREETYPE=1 \
     -DENABLE_LEVELDB=0 \
+    -DENABLE_POSTGRESQL=1 \
+    -DENABLE_SPATIAL=1 \
     -DENABLE_REDIS=0
   make
 
@@ -41,6 +43,8 @@
     -DBUILD_CLIENT=0 \
     -DBUILD_SERVER=1 \
     -DENABLE_LEVELDB=1 \
+    -DENABLE_POSTGRESQL=1 \
+    -DENABLE_SPATIAL=1 \
     -DENABLE_REDIS=1
   make
 }
@@ -49,11 +53,10 @@
   pkgdesc='Multiplayer infinite-world block sandbox game'
   depends=('minetest-common' 'irrlicht' 'curl' 'libvorbis' 'sqlite'
            'openal' 'hicolor-icon-theme' 'desktop-file-utils' 'xdg-utils'
-           'freetype2' 'luajit')
+           'freetype2' 'luajit' 'postgresql-libs' 'spatialindex')
 
   cd build-client
   make DESTDIR="$pkgdir" install
-  cp -r locale "$pkgdir"/usr/share/
 
   rm -rf "$pkgdir"/usr/share/{minetest,doc}
   rm "$pkgdir"/usr/share/man/man6/minetestserver.6
@@ -61,7 +64,8 @@
 
 package_minetest-server() {
   pkgdesc='Server of infinite-world block sandbox game'
-  depends=('minetest-common' 'leveldb' 'curl' 'sqlite' 'hiredis' 'luajit')
+  depends=('minetest-common' 'leveldb' 'curl' 'sqlite' 'hiredis' 'luajit'
+           'postgresql-libs' 'spatialindex')
 
   cd build-server
   make DESTDIR="$pkgdir" install
@@ -83,6 +87,7 @@
   install -d "$pkgdir"/usr/share/minetest
 
   cp -r games builtin client fonts textures "$pkgdir"/usr/share/minetest/
+  cp -r "$srcdir"/build-client/locale "$pkgdir"/usr/share/minetest/
   cp -r "$srcdir"/minetest_game-$pkgver "$pkgdir"/usr/share/minetest/games/minetest
   rm "$pkgdir"/usr/share/minetest/games/minetest/.gitignore
 


More information about the arch-commits mailing list