git » sfml.git » commit 52cb4d0

upgpkg: 2.6.0-3: add list of .so provides

author T.J. Townsend
2023-06-30 20:13:51 UTC
committer T.J. Townsend
2023-06-30 20:13:51 UTC
parent 153fecb145432d32b94563fcb6fdf888614f7d4a

upgpkg: 2.6.0-3: add list of .so provides

PKGBUILD +5 -9

diff --git a/PKGBUILD b/PKGBUILD
index 67229bb..5caac39 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,22 +3,20 @@
 
 pkgname=sfml
 pkgver=2.6.0
-pkgrel=2
+pkgrel=3
 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' 'openal' 'glew' 'freetype2' 'libx11' 'libxcursor')
 makedepends=('mesa' 'cmake' 'doxygen' 'systemd' 'ninja')
+provides=('libsfml-window.so' 'libsfml-network.so' 'libsfml-system.so'
+          'libsfml-audio.so' 'libsfml-graphics.so')
 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/SFML/SFML/archive/${pkgver}.tar.gz)
 sha512sums=('aac734e8b0e16936c0238ec792c922923545ec6cf06576bc70004fa1920cd05b4c5e56fbc8a77b650bbe6e202adc39df1d30509dbce95778d04338917a38a87a')
 
 build() {
-  cd SFML-${pkgver}
-
-  cmake \
-      -Bbuild \
-      -GNinja \
+  cmake -B build -S SFML-${pkgver} -G Ninja \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DSFML_USE_SYSTEM_DEPS=ON \
       -DSFML_BUILD_EXAMPLES=1 \
@@ -30,9 +28,7 @@ build() {
 }
 
 package() {
-  cd SFML-${pkgver}
-
   DESTDIR="$pkgdir/" ninja -C build install
 
-  install -Dm644 license.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -Dm644 SFML-${pkgver}/license.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }