[arch-commits] Commit in slimevolley/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Jul 7 21:22:35 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:22:34
  Author: foutrelis
Revision: 660373

archrelease: copy trunk to community-staging-x86_64

Added:
  slimevolley/repos/community-staging-x86_64/
  slimevolley/repos/community-staging-x86_64/PKGBUILD
    (from rev 660372, slimevolley/trunk/PKGBUILD)
  slimevolley/repos/community-staging-x86_64/link-libm.patch
    (from rev 660372, slimevolley/trunk/link-libm.patch)

-----------------+
 PKGBUILD        |   34 ++++++++++++++++++++++++++++++++++
 link-libm.patch |   14 ++++++++++++++
 2 files changed, 48 insertions(+)

Copied: slimevolley/repos/community-staging-x86_64/PKGBUILD (from rev 660372, slimevolley/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:22:34 UTC (rev 660373)
@@ -0,0 +1,34 @@
+# Maintainer : Geoffroy Carrier <gcarrier at aur.archlinux.org>
+# Contributor: Joel Schaerer <joel.schaerer at laposte.net>
+
+pkgname=slimevolley
+pkgver=2.4.2
+pkgrel=5
+pkgdesc="A simple yet fun arcade volley game"
+arch=('x86_64')
+url="https://slime.tuxfamily.org/index.php"
+license=('GPL')
+depends=('sdl_net' 'sdl_ttf' 'sdl_image')
+makedepends=('cmake')
+source=("https://downloads.tuxfamily.org/slime/v242/${pkgname}_${pkgver}.tar.bz2"
+        link-libm.patch)
+sha512sums=('7a72329d9e22396f2e304d40370896b2c1a0ae22d5bf1769a46cad8fb1131b1ae9c16de0e5f847b8a31004df074cdeb710a28bfd1e1d94beceb1c8eb0a750680'
+            '61b09d65af465637d5c1d22306cc412f742b19ef58243d9df033a931ae9a2002123da393a91214999275c6801335ebcae9554cf4a4ce7a94b7cfef954bd6dc8c')
+
+prepare() {
+  cd "$srcdir/$pkgname"
+  patch -Np1 -i ../link-libm.patch
+}
+
+build() {
+  cd "$srcdir/$pkgname"
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  cmake -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr .
+  make
+}
+
+package() {
+  cd "$srcdir/$pkgname"
+
+  make DESTDIR="${pkgdir}" install
+}

Copied: slimevolley/repos/community-staging-x86_64/link-libm.patch (from rev 660372, slimevolley/trunk/link-libm.patch)
===================================================================
--- community-staging-x86_64/link-libm.patch	                        (rev 0)
+++ community-staging-x86_64/link-libm.patch	2020-07-07 21:22:34 UTC (rev 660373)
@@ -0,0 +1,14 @@
+Description: Link to libm to prevent FTBFS with --no-add-needed.
+Author: Evgeni Golov <evgeni at debian.org>
+Bug-Debian: http://bugs.debian.org/615775
+
+--- slimevolley-2.4.2.orig/CMakeLists.txt
++++ slimevolley-2.4.2/CMakeLists.txt
+@@ -42,6 +42,7 @@ LINK_LIBRARIES(
+ 	${SDL_LIBRARY}
+ 	${SDLTTF_LIBRARY}
+ 	${SDLIMAGE_LIBRARY}
++	m
+ )
+ 
+ INCLUDE(FindGettext.cmake)


More information about the arch-commits mailing list