git » csfml.git » commit 08f6567

Modernize package

author Sven-Hendrik Haase
2020-07-28 01:03:19 UTC
committer Sven-Hendrik Haase
2020-07-28 01:03:19 UTC
parent e95aee8104fa7eeb336b1630be53b3189a598cb5

Modernize package

PKGBUILD +12 -11

diff --git a/PKGBUILD b/PKGBUILD
index 8410f45..52c1a24 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,32 +2,33 @@
 
 pkgname=csfml
 pkgver=2.5
-pkgrel=3
+pkgrel=4
 pkgdesc='C bindings for sfml'
 arch=('x86_64')
 url='http://www.sfml-dev.org/'
-license=('zlib')
+license=('custom:zlib')
 depends=("sfml")
-makedepends=('cmake' 'doxygen')
+makedepends=('cmake' 'doxygen' 'ninja')
 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/SFML/CSFML/archive/${pkgver}.tar.gz")
-sha512sums=('186ed87d8b925cfd51cc4aa0ba440407d18adc875da760576b5fafdf3e8c7e01ca0f594d9950495eb3e607c65bff12341a81df24af81043dce89d25d7cc24626')
+sha512sums=('5eca2052e901d52eb3a0f3c796f949f63263ef6d55be441c6bd7e153427c997a0f5bb28c0096979515d327d313637dd9537bcb407204b0a583f25515115362bf')
 
 build() {
   cd CSFML-*
 
-  mkdir build && cd build
-  cmake .. \
+  cmake . \
+      -Bbuild \
+      -GNinja \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DCSFML_BUILD_DOC=true
-  make
-  make doc
+  ninja -C build
+  ninja -C build doc
 }
 
 package() {
-  cd CSFML-*/build
+  cd CSFML-*
 
-  make DESTDIR="$pkgdir/" install
+  DESTDIR="$pkgdir/" ninja -C build install
 
-  install -Dm644 ../license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+  install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
 }