summaryrefslogtreecommitdiff
path: root/community/slimevolley
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/slimevolley
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/slimevolley')
-rw-r--r--community/slimevolley/PKGBUILD33
-rw-r--r--community/slimevolley/link-libm.patch14
2 files changed, 47 insertions, 0 deletions
diff --git a/community/slimevolley/PKGBUILD b/community/slimevolley/PKGBUILD
new file mode 100644
index 000000000..695f6eb3f
--- /dev/null
+++ b/community/slimevolley/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 67388 2012-03-10 21:54:03Z lcarlier $
+# Maintainer : Geoffroy Carrier <gcarrier@aur.archlinux.org>
+# Contributor: Joel Schaerer <joel.schaerer@laposte.net>
+
+pkgname=slimevolley
+pkgver=2.4.2
+pkgrel=2
+pkgdesc="A simple yet fun arcade volley game"
+arch=('i686' 'x86_64')
+url="http://slime.tuxfamily.org/index.php"
+license=('GPL')
+depends=('sdl_net' 'sdl_ttf' 'sdl_image')
+makedepends=('cmake')
+source=("http://downloads.tuxfamily.org/slime/v242/${pkgname}_${pkgver}.tar.bz2"
+ link-libm.patch)
+md5sums=('42d1287bf459c26475a9bb7a9bb167e5')
+
+build() {
+ cd "$srcdir/$pkgname"
+
+ patch -Np1 -i ../link-libm.patch
+
+ cmake -DCMAKE_INSTALL_PREFIX:FILEPATH=/usr .
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+
+ make DESTDIR="${pkgdir}" install
+}
+md5sums=('42d1287bf459c26475a9bb7a9bb167e5'
+ '4e5a7d4fb97e8f482e5468acc795a17b')
diff --git a/community/slimevolley/link-libm.patch b/community/slimevolley/link-libm.patch
new file mode 100644
index 000000000..acbd21d37
--- /dev/null
+++ b/community/slimevolley/link-libm.patch
@@ -0,0 +1,14 @@
+Description: Link to libm to prevent FTBFS with --no-add-needed.
+Author: Evgeni Golov <evgeni@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)