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

Laurent Carlier lcarlier at archlinux.org
Mon Nov 30 09:22:03 UTC 2020


    Date: Monday, November 30, 2020 @ 09:22:02
  Author: lcarlier
Revision: 766543

upgpkg: sauerbraten 2020_11_29-1: upstream update 2020_11_29

Modified:
  sauerbraten/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++----------
 1 file changed, 20 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-30 09:20:46 UTC (rev 766542)
+++ PKGBUILD	2020-11-30 09:22:02 UTC (rev 766543)
@@ -4,14 +4,14 @@
 # Contributor: Christoph Siegenthaler <csi at gmx.ch>
 # Contributor: Jesse Young <jesse at eon.jlyo.org>
 
-pkgname=sauerbraten
-pkgver=2013_02_03_collect_edition
-pkgrel=7
+pkgname=('sauerbraten' 'sauerbraten-data')
+pkgver=2020_11_29
+pkgrel=1
 pkgdesc="FPS that uses an improved version of the Cube engine"
 arch=('x86_64')
 url="http://www.sauerbraten.org/"
 license=('ZLIB')
-makedepends=('sdl_mixer' 'sdl_image' 'mesa-libgl' 'glu') # gendesk
+makedepends=('sdl2_mixer' 'sdl2_image' 'mesa-libgl' 'glu')
 backup=('etc/conf.d/sauerbraten')
 source=(https://downloads.sourceforge.net/$pkgname/${pkgname}_${pkgver}_linux.tar.bz2
         sauerbraten-client
@@ -22,7 +22,7 @@
         sauerbraten.sysusers
         sauerbraten.desktop
         license.txt)
-md5sums=('2cfbd619981402898f97b93be08d58ac'
+md5sums=('762ad9bee1205a15986784926da54746'
          'cb84f0baa72ad88b939a9e5fd0916559'
          '4a42c314d01ccdc4c76fad38d18c7434'
          'c28be8761ede9ca82b6ab311aa7f6d42'
@@ -34,16 +34,14 @@
 #_exec=('sauerbraten-client %u')
 
 build() {
-#  cd "$srcdir"
-#  gendesk ## broken ##
-
   cd "$pkgname/src"
 
   make
 }
 
-package() {
-  depends=('sdl_mixer' 'sdl_image' 'libgl' 'sauerbraten-data')
+package_sauerbraten() {
+  pkgdesc="FPS that uses an improved version of the Cube engine"
+  depends=('sdl2_mixer' 'sdl2_image' 'libgl' 'sauerbraten-data')
 
   cd "${srcdir}"/$pkgname/src
 
@@ -62,3 +60,15 @@
   install -Dm644 "${srcdir}"/sauerbraten.png "${pkgdir}"/usr/share/pixmaps/sauerbraten.png
   install -Dm644 "${srcdir}"/license.txt "${pkgdir}"/usr/share/licenses/sauerbraten/license.txt
 }
+
+package_sauerbraten-data() {
+  pkgdesc="Improved version of the Cube engine - datas files"
+
+  cd "${srcdir}"/sauerbraten
+
+  install -d "${pkgdir}"/opt/sauerbraten
+  cp -r data "${pkgdir}"/opt/sauerbraten
+  cp -r packages "${pkgdir}"/opt/sauerbraten
+
+  install -Dm644 "${srcdir}"/license.txt "${pkgdir}"/usr/share/licenses/${pkgname}/license.txt
+}



More information about the arch-commits mailing list