diff options
author | root <root@rshg054.dnsready.net> | 2012-10-23 01:37:15 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-23 01:37:15 -0700 |
commit | 3c19af9355ba86a5b99d6e5a57ecaa68a7ea6e8e (patch) | |
tree | 8fac31deec086251b3b9dc8faddfe14f5667392b /community-staging/sfml | |
parent | 99746708edfd2c56f2ba654a14f27e98b1601a43 (diff) |
Tue Oct 23 01:37:02 PDT 2012
Diffstat (limited to 'community-staging/sfml')
-rw-r--r-- | community-staging/sfml/PKGBUILD | 38 | ||||
-rw-r--r-- | community-staging/sfml/sfml.install | 3 |
2 files changed, 41 insertions, 0 deletions
diff --git a/community-staging/sfml/PKGBUILD b/community-staging/sfml/PKGBUILD new file mode 100644 index 000000000..c59465784 --- /dev/null +++ b/community-staging/sfml/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 78696 2012-10-22 22:13:12Z ebelanger $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Ondrej Martinak <omartinak@gmail.com> + +pkgname=sfml +pkgver=2.0rc1 +pkgrel=3 +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" +} + diff --git a/community-staging/sfml/sfml.install b/community-staging/sfml/sfml.install new file mode 100644 index 000000000..75f760be6 --- /dev/null +++ b/community-staging/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" +} |