author | Sven-Hendrik Haase
<svenstaro@archlinux.org> 2023-06-21 05:04:40 UTC |
committer | Sven-Hendrik Haase
<svenstaro@archlinux.org> 2023-06-21 05:04:40 UTC |
parent | 7a5eae5e2348d03a3a1a274caa6315225d3fd89b |
PKGBUILD | +14 | -13 |
diff --git a/PKGBUILD b/PKGBUILD index f97da10..f8a964f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,36 +1,37 @@ -# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com> +# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org> # Contributor: Ondrej Martinak <omartinak@gmail.com> pkgname=sfml -pkgver=2.5.1 -pkgrel=3 +pkgver=2.6.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' 'openal' 'glew' 'freetype2' 'libx11') -makedepends=('mesa' 'cmake' 'doxygen' 'systemd') +depends=('libsndfile' 'libxrandr' 'openal' 'glew' 'freetype2' 'libx11' 'libxcursor') +makedepends=('mesa' 'cmake' 'doxygen' 'systemd' 'ninja') source=(${pkgname}-${pkgver}.tar.gz::https://github.com/SFML/SFML/archive/${pkgver}.tar.gz) -sha512sums=('7aed2fc29d1da98e6c4d598d5c86cf536cb4eb5c2079cdc23bb8e502288833c052579dadbe0ce13ad6461792d959bf6d9660229f54c54cf90a541c88c6b03d59') +sha512sums=('aac734e8b0e16936c0238ec792c922923545ec6cf06576bc70004fa1920cd05b4c5e56fbc8a77b650bbe6e202adc39df1d30509dbce95778d04338917a38a87a') build() { cd SFML-${pkgver} - mkdir build && cd build - cmake .. \ + cmake \ + -Bbuild \ + -GNinja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSFML_USE_SYSTEM_DEPS=ON \ -DSFML_BUILD_EXAMPLES=1 \ -DSFML_BUILD_DOC=1 \ -DSFML_INSTALL_PKGCONFIG_FILES=1 - make - make doc + ninja -C build + ninja -C build doc } package() { - cd SFML-${pkgver}/build + cd SFML-${pkgver} - make DESTDIR="$pkgdir/" install + DESTDIR="$pkgdir/" ninja -C build install - install -Dm644 ../license.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -Dm644 license.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }