git » sfml.git » commit 1b1f871

Updating to 2.0rc1

author Sven-Hendrik Haase
2012-04-13 15:58:24 UTC
committer Sven-Hendrik Haase
2012-04-13 15:58:24 UTC
parent 9e3c7ccb3701e6783e790a66e044df32595ea540

Updating to 2.0rc1

PKGBUILD +6 -29

diff --git a/PKGBUILD b/PKGBUILD
index 1d7ab66..a123bf9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,43 +2,20 @@
 # Contributor: Ondrej Martinak <omartinak@gmail.com>
 
 pkgname=sfml
-
-_git=true
-
-if [[ "${_git}" = "true" ]]; then
-    pkgver=1.99.git20120331
-fi
-
+pkgver=2.0rc1
 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')
+makedepends=('mesa' 'cmake' 'doxygen')
 install=sfml.install
-
-_gitroot='https://github.com/LaurentGomila/SFML.git'
-_gitname='SFML'
+source=("2.0-rc.tar.gz::https://github.com/LaurentGomila/SFML/tarball/2.0-rc")
+md5sums=('03c8e6817f4525092b94a3d44e8eada8')
 
 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"/Laurent*
 
   mkdir build && cd build
   cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
@@ -49,7 +26,7 @@ build() {
 }
 
 package() {
-  cd "$srcdir/$_gitname-build/build"
+  cd "$srcdir"/Laurent*/build
 
   make DESTDIR="$pkgdir/" install