# $Id: PKGBUILD 49432 2011-06-16 04:45:37Z svenstaro $ # Maintainer: Sven-Hendrik Haase pkgname=csfml _git=true if [[ "${_git}" = "true" ]]; then pkgver=1.99.git20110616 fi pkgrel=1 pkgdesc='C bindings for sfml' arch=('i686' 'x86_64' 'mips64el') url='http://www.sfml-dev.org/' license=('zlib') depends=('sfml') makedepends=('git' 'cmake' 'doxygen') _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" cd bindings/c/ mkdir build && cd build cmake -DCMAKE_INSTALL_PREFIX=/usr .. \ -DBUILD_DOC=true make make doc } package() { cd "$srcdir/$_gitname-build/bindings/c/build/" make DESTDIR="$pkgdir/" install install -Dm644 ../license.txt \ ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE make clean }