From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/sfml/PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ community/sfml/sfml.install | 3 +++ 2 files changed, 42 insertions(+) create mode 100644 community/sfml/PKGBUILD create mode 100644 community/sfml/sfml.install (limited to 'community/sfml') diff --git a/community/sfml/PKGBUILD b/community/sfml/PKGBUILD new file mode 100644 index 000000000..2cd8af622 --- /dev/null +++ b/community/sfml/PKGBUILD @@ -0,0 +1,39 @@ +# $Id: PKGBUILD 88118 2013-04-12 07:50:02Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +# Contributor: Ondrej Martinak + +pkgname=sfml +pkgver=2.0 +pkgrel=1 +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=("https://github.com/LaurentGomila/SFML/archive/2.0.tar.gz") +md5sums=('294fd8563a319e06f68bbca0eedc905e') + +build() { + cd "$srcdir"/SFML-${pkgver} + + mkdir build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DSFML_BUILD_EXAMPLES=true \ + -DSFML_BUILD_DOC=true + make + make doc +} + +package() { + cd "$srcdir"/SFML-${pkgver}/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" +} + diff --git a/community/sfml/sfml.install b/community/sfml/sfml.install new file mode 100644 index 000000000..75f760be6 --- /dev/null +++ b/community/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