From 5b3474881a154216b47c6e154552ee5f9c68c509 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Jul 2012 00:02:30 +0000 Subject: Tue Jul 31 00:02:29 UTC 2012 --- community-testing/sfml/PKGBUILD | 40 +++++++++++++++++++++++++++++++++++++ community-testing/sfml/sfml.install | 3 +++ 2 files changed, 43 insertions(+) create mode 100644 community-testing/sfml/PKGBUILD create mode 100644 community-testing/sfml/sfml.install (limited to 'community-testing/sfml') 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 +# Contributor: Ondrej Martinak + +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" +} -- cgit v1.2.3-54-g00ecf