[arch-commits] Commit in csfml/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Jul 28 01:03:21 UTC 2020


    Date: Tuesday, July 28, 2020 @ 01:03:19
  Author: svenstaro
Revision: 665588

upgpkg: csfml 2.5-4: Modernize package

Modified:
  csfml/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++++-----------
 1 file changed, 12 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-28 00:56:45 UTC (rev 665587)
+++ PKGBUILD	2020-07-28 01:03:19 UTC (rev 665588)
@@ -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
 }
 



More information about the arch-commits mailing list