diff options
author | root <root@rshg054.dnsready.net> | 2013-04-14 00:46:08 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-14 00:46:08 -0700 |
commit | 8ec4fd7a9e4748c568b20fefcb2dec0f289dc213 (patch) | |
tree | 57356a416a46b3c8894bd71a4503aecb49f2ed7f /community/csfml | |
parent | 8f0418e4a239ba973834592537b474d3aac52d5b (diff) |
Sun Apr 14 00:46:05 PDT 2013
Diffstat (limited to 'community/csfml')
-rw-r--r-- | community/csfml/PKGBUILD | 49 |
1 files changed, 12 insertions, 37 deletions
diff --git a/community/csfml/PKGBUILD b/community/csfml/PKGBUILD index 1f47c2772..4ed6778c8 100644 --- a/community/csfml/PKGBUILD +++ b/community/csfml/PKGBUILD @@ -1,59 +1,34 @@ -# $Id: PKGBUILD 70299 2012-05-04 03:01:09Z svenstaro $ +# $Id: PKGBUILD 88191 2013-04-13 15:25:43Z svenstaro $ # Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> pkgname=csfml - -_git=true - -if [[ "${_git}" = "true" ]]; then - pkgver=1.99.git20120504 -fi - +pkgver=2.0 pkgrel=1 pkgdesc='C bindings for sfml' arch=('i686' 'x86_64') url='http://www.sfml-dev.org/' license=('zlib') -depends=('sfml') -makedepends=('git' 'cmake' 'doxygen') - -_gitroot='https://github.com/LaurentGomila/CSFML.git' -_gitname='CSFML' +depends=("sfml=${pkgver}") +makedepends=('cmake' 'doxygen') +source=("csfml-${pkgver}::https://github.com/LaurentGomila/CSFML/archive/2.0.tar.gz") +md5sums=('d609c9e3b115d480d8c61911d774472c') 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 "$srcdir"/CSFML-${pkgver} mkdir build && cd build - cmake -DCMAKE_INSTALL_PREFIX=/usr .. \ - -DBUILD_DOC=true + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_DOC=true make make doc } package() { - cd "$srcdir/$_gitname-build/build/" + cd "$srcdir"/CSFML-${pkgver}/build make DESTDIR="$pkgdir/" install - install -Dm644 ../license.txt \ - ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE - - make clean + install -Dm644 ../license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE } |