[arch-commits] Commit in minetest/repos (5 files)

Antonio Rojas arojas at archlinux.org
Sat Aug 8 08:48:36 UTC 2020


    Date: Saturday, August 8, 2020 @ 08:48:36
  Author: arojas
Revision: 671981

archrelease: copy trunk to community-staging-x86_64

Added:
  minetest/repos/community-staging-x86_64/
  minetest/repos/community-staging-x86_64/PKGBUILD
    (from rev 671980, minetest/trunk/PKGBUILD)
  minetest/repos/community-staging-x86_64/minetest.service
    (from rev 671980, minetest/trunk/minetest.service)
  minetest/repos/community-staging-x86_64/sysusers.d
    (from rev 671980, minetest/trunk/sysusers.d)
  minetest/repos/community-staging-x86_64/tmpfiles.d
    (from rev 671980, minetest/trunk/tmpfiles.d)

------------------+
 PKGBUILD         |   97 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 minetest.service |   10 +++++
 sysusers.d       |    2 +
 tmpfiles.d       |    1 
 4 files changed, 110 insertions(+)

Copied: minetest/repos/community-staging-x86_64/PKGBUILD (from rev 671980, minetest/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-08-08 08:48:36 UTC (rev 671981)
@@ -0,0 +1,97 @@
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Konsta Kokkinen <kray at tsundere.fi>
+
+pkgname=('minetest' 'minetest-server' 'minetest-common')
+pkgver=5.3.0
+pkgrel=2
+arch=('x86_64')
+url='https://www.minetest.net/'
+license=('GPL')
+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
+        sysusers.d
+        tmpfiles.d)
+sha256sums=('65dc2049f24c93fa544500f310a61e289c1b8fa47bf60877b746a2c27a7238d6'
+            '06c6c1d4b97af211dd0fa518a3e68a205f594e9816a4b2477e48d4d21d278e2d'
+            '2d80b4ff925770bdf3d857debb2ad11227cc9b022eb01a358b18f8d5f2641a5c'
+            'e4166d639b35efda2cd72269208184ab1e72c54541344cd202ff2005c90b9433'
+            'd9405cf7cd0a657ef06082570783383a1f527fbc0bd122ea506d4fbe26950d4a')
+
+prepare() {
+  install -d build-{client,server}
+}
+
+build() {
+  cd "$srcdir"/build-client
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_CLIENT=1 \
+    -DENABLE_GETTEXT=1 \
+    -DENABLE_FREETYPE=1 \
+    -DENABLE_LEVELDB=0 \
+    -DENABLE_POSTGRESQL=1 \
+    -DENABLE_SPATIAL=1 \
+    -DENABLE_REDIS=0
+  make
+
+  cd "$srcdir"/build-server
+  cmake ../$pkgname-$pkgver \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DBUILD_CLIENT=0 \
+    -DBUILD_SERVER=1 \
+    -DENABLE_LEVELDB=1 \
+    -DENABLE_POSTGRESQL=1 \
+    -DENABLE_SPATIAL=1 \
+    -DENABLE_REDIS=1
+  make
+}
+
+package_minetest() {
+  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' 'postgresql-libs' 'spatialindex')
+
+  cd build-client
+  make DESTDIR="$pkgdir" install
+
+  rm -rf "$pkgdir"/usr/share/{minetest,doc}
+  rm "$pkgdir"/usr/share/man/man6/minetestserver.6
+}
+
+package_minetest-server() {
+  pkgdesc='Server of infinite-world block sandbox game'
+  depends=('minetest-common' 'leveldb' 'curl' 'sqlite' 'hiredis' 'luajit'
+           'postgresql-libs' 'spatialindex')
+
+  cd build-server
+  make DESTDIR="$pkgdir" install
+  install -d  "$pkgdir"/etc/minetest
+  install -Dm644 ../minetest.service \
+    "$pkgdir"/usr/lib/systemd/system/minetest at .service
+
+  rm -rf "$pkgdir"/usr/share/{minetest,metainfo,appdata,applications,icons,doc}
+  mv "$pkgdir"/usr/share/man/man6/minetest.6 "$pkgdir"/usr/share/man/man6/minetestserver.6
+
+  install -Dm644 ${srcdir}/tmpfiles.d ${pkgdir}/usr/lib/tmpfiles.d/minetest-server.conf
+  install -Dm644 ${srcdir}/sysusers.d ${pkgdir}/usr/lib/sysusers.d/minetest-server.conf
+}
+
+package_minetest-common() {
+  pkgdesc='Common data files for minetest and minetest-server'
+
+  cd $pkgbase-$pkgver
+  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
+
+  for file in doc/{fst_api,lua_api,menu_lua_api,protocol,world_format}.txt; do
+    install -Dm644 $file "$pkgdir"/usr/share/minetest/doc/$(basename $file)
+  done
+}

Copied: minetest/repos/community-staging-x86_64/minetest.service (from rev 671980, minetest/trunk/minetest.service)
===================================================================
--- community-staging-x86_64/minetest.service	                        (rev 0)
+++ community-staging-x86_64/minetest.service	2020-08-08 08:48:36 UTC (rev 671981)
@@ -0,0 +1,10 @@
+[Unit]
+Description=Minetest multiplayer server w/ %i.conf server config
+After=syslog.target network.target
+
+[Service]
+User=minetest
+ExecStart=/usr/bin/minetestserver --config /etc/minetest/%i.conf --map-dir /var/lib/minetest/%i/
+
+[Install]
+WantedBy=multi-user.target

Copied: minetest/repos/community-staging-x86_64/sysusers.d (from rev 671980, minetest/trunk/sysusers.d)
===================================================================
--- community-staging-x86_64/sysusers.d	                        (rev 0)
+++ community-staging-x86_64/sysusers.d	2020-08-08 08:48:36 UTC (rev 671981)
@@ -0,0 +1,2 @@
+u minetest - "minetest" /var/lib/minetest
+

Copied: minetest/repos/community-staging-x86_64/tmpfiles.d (from rev 671980, minetest/trunk/tmpfiles.d)
===================================================================
--- community-staging-x86_64/tmpfiles.d	                        (rev 0)
+++ community-staging-x86_64/tmpfiles.d	2020-08-08 08:48:36 UTC (rev 671981)
@@ -0,0 +1 @@
+d /var/lib/minetest - minetest minetest - -


More information about the arch-commits mailing list