git » sfml.git » commit a493688

upgpkg: 2.5.0-1

author Sven-Hendrik Haase
2018-05-09 02:03:01 UTC
committer Sven-Hendrik Haase
2018-05-09 02:03:01 UTC
parent 19824adbe03ab08ee0344fe9f6451abe83ccb6d7

upgpkg: 2.5.0-1

PKGBUILD +9 -10

diff --git a/PKGBUILD b/PKGBUILD
index 5a8dd0d..c75ce9c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,23 +2,24 @@
 # Contributor: Ondrej Martinak <omartinak@gmail.com>
 
 pkgname=sfml
-pkgver=2.4.2
-pkgrel=5
+pkgver=2.5.0
+pkgrel=1
 pkgdesc='A simple, fast, cross-platform, and object-oriented multimedia API'
 arch=('x86_64')
 url='http://www.sfml-dev.org/'
 license=('zlib')
 depends=('libsndfile' 'libxrandr' 'libjpeg' 'openal' 'glew' 'freetype2' 'libx11')
-makedepends=('mesa' 'cmake' 'doxygen' 'git' 'systemd')
-source=("git+git://github.com/LaurentGomila/SFML.git#tag=${pkgver}")
-sha512sums=('SKIP')
+makedepends=('mesa' 'cmake' 'doxygen' 'systemd')
+source=(https://github.com/SFML/SFML/archive/${pkgver}.tar.gz)
+sha512sums=('94306dcbed7d68bb7e226cd91e25950a07bcf393988c4bb79f9de3555c18c78cae4573e911235f712e711a7c02a614bf370df32b8d85240d2f08142327e05076')
 
 build() {
-  cd "$srcdir"/SFML
+  cd SFML-${pkgver}
 
   mkdir build && cd build
   cmake .. \
       -DCMAKE_INSTALL_PREFIX=/usr \
+      -SFML_USE_SYSTEM_DEPS=ON \
       -DSFML_BUILD_EXAMPLES=1 \
       -DSFML_BUILD_DOC=1 \
       -DSFML_INSTALL_PKGCONFIG_FILES=1
@@ -27,12 +28,10 @@ build() {
 }
 
 package() {
-  cd "$srcdir"/SFML/build
+  cd SFML-${pkgver}/build
 
   make DESTDIR="$pkgdir/" install
 
-  install -Dm644 "$pkgdir/usr/share/SFML/cmake/Modules/FindSFML.cmake" "$pkgdir/usr/lib/cmake/SFML/FindSFML.cmake"
-
-  install -Dm644 ../license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 ../license.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }