diff options
author | root <root@rshg054.dnsready.net> | 2011-09-18 23:14:34 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-09-18 23:14:34 +0000 |
commit | f57b139ded4e8c4b10555985513b3f9a70a70e12 (patch) | |
tree | 5c1e21523a0039ae25bd6237e79cc8158e068bd5 /community-testing/sfml | |
parent | c7fd3b08e227a739803d62e0bb3033ebe65da775 (diff) |
Sun Sep 18 23:14:34 UTC 2011
Diffstat (limited to 'community-testing/sfml')
-rw-r--r-- | community-testing/sfml/PKGBUILD | 61 | ||||
-rw-r--r-- | community-testing/sfml/sfml.install | 3 |
2 files changed, 64 insertions, 0 deletions
diff --git a/community-testing/sfml/PKGBUILD b/community-testing/sfml/PKGBUILD new file mode 100644 index 000000000..20a5bd87c --- /dev/null +++ b/community-testing/sfml/PKGBUILD @@ -0,0 +1,61 @@ +# $Id: PKGBUILD 55707 2011-09-17 21:15:53Z stephane $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: Ondrej Martinak <omartinak@gmail.com> + +pkgname=sfml + +_git=true + +if [[ "${_git}" = "true" ]]; then + pkgver=1.99.git20110917 +fi + +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=('git' 'mesa' 'cmake' 'doxygen') +install=sfml.install + +_gitroot='https://github.com/LaurentGomila/SFML.git' +_gitname='SFML' + +build() { + cd "$srcdir" + msg "Connecting to GIT server...." + + if [ -d $_gitname ] ; then + cd $_gitname && git pull origin + msg "The local files are updated." + else + git clone $_gitroot + cd $_gitname + fi + + msg "GIT checkout done or server timeout" + msg "Starting make..." + + rm -rf "$srcdir/$_gitname-build" + cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build" + cd "$srcdir/$_gitname-build" + + mkdir build && cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. \ + -DBUILD_DOC=true \ + -DBUILD_EXAMPLES=true + make + make doc +} + +package() { + cd "$srcdir/$_gitname-build/build" + make DESTDIR="$pkgdir/" install + + 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" +} |