summaryrefslogtreecommitdiff
path: root/community-testing/sfml
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-31 00:02:30 +0000
committerroot <root@rshg054.dnsready.net>2012-07-31 00:02:30 +0000
commit5b3474881a154216b47c6e154552ee5f9c68c509 (patch)
tree098f24750e89f88b3c80ded4579a44928bae1b45 /community-testing/sfml
parent4982c269b318734d01ad30c6592fbb73565ceb12 (diff)
Tue Jul 31 00:02:29 UTC 2012
Diffstat (limited to 'community-testing/sfml')
-rw-r--r--community-testing/sfml/PKGBUILD40
-rw-r--r--community-testing/sfml/sfml.install3
2 files changed, 43 insertions, 0 deletions
diff --git a/community-testing/sfml/PKGBUILD b/community-testing/sfml/PKGBUILD
new file mode 100644
index 000000000..8650d6c50
--- /dev/null
+++ b/community-testing/sfml/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 74521 2012-07-29 21:16:25Z ebelanger $
+# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Ondrej Martinak <omartinak@gmail.com>
+
+pkgname=sfml
+pkgver=2.0rc1
+pkgrel=2
+pkgdesc='A simple, fast, cross-platform, and object-oriented multimedia API'
+arch=('i686' 'x86_64')
+url='http://www.sfml-dev.org/'
+license=('zlib')
+depends=('libsndfile' 'libxrandr' 'libjpeg' 'openal' 'glew' 'freetype2')
+makedepends=('mesa' 'cmake' 'doxygen')
+install=sfml.install
+source=("2.0-rc.tar.gz::https://github.com/LaurentGomila/SFML/tarball/2.0-rc")
+md5sums=('03c8e6817f4525092b94a3d44e8eada8')
+
+build() {
+ cd "$srcdir"/Laurent*
+
+ mkdir build && cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
+ -DBUILD_DOC=true \
+ -DBUILD_EXAMPLES=true
+ make
+ make doc
+}
+
+package() {
+ cd "$srcdir"/Laurent*/build
+
+ make DESTDIR="$pkgdir/" install
+
+ install -Dm644 "$pkgdir/usr/share/SFML/cmake/Modules/FindSFML.cmake" "$pkgdir/usr/share/cmake-2.8/Modules/FindSFML.cmake"
+
+ install -Dm644 ../license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+
+ make clean
+}
+
diff --git a/community-testing/sfml/sfml.install b/community-testing/sfml/sfml.install
new file mode 100644
index 000000000..75f760be6
--- /dev/null
+++ b/community-testing/sfml/sfml.install
@@ -0,0 +1,3 @@
+post_install() {
+ echo "To view the SFML samples, go to /usr/share/SFML/examples/ and run them individually"
+}