author | Sven-Hendrik Haase
<svenstaro@archlinux.org> 2013-04-13 15:25:30 UTC |
committer | Sven-Hendrik Haase
<svenstaro@archlinux.org> 2013-04-13 15:25:30 UTC |
parent | 7063b2e4a3504745fd50e219afd6f15bd0dea33c |
PKGBUILD | +11 | -36 |
diff --git a/PKGBUILD b/PKGBUILD index 7e42bc0..748f6ca 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,58 +1,33 @@ # 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 }