mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Contribution from Arch https://www.archlinux.org/packages/community/x86_64/sfml/
|
|
|
|
pkgname=sfml
|
|
pkgver=2.3.2
|
|
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' 'xcb-util-image')
|
|
makedepends=('mesa' 'cmake' 'doxygen')
|
|
source=("https://github.com/SFML/SFML/archive/${pkgver}.tar.gz")
|
|
sha256sums=('55e7c864938e03ceb7d6d05c66f8e0dc886e632805d0ae17c222da317ba14e4c')
|
|
|
|
build() {
|
|
cd "$srcdir"/SFML-${pkgver}
|
|
|
|
mkdir -p build && cd build
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DSFML_BUILD_EXAMPLES=1 \
|
|
-DSFML_BUILD_DOC=1 \
|
|
-DSFML_INSTALL_PKGCONFIG_FILES=1 \
|
|
-DCMAKE_CXX_FLAGS="-DGLXContextID=XID $CXXFLAGS"
|
|
make
|
|
make doc
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/SFML-${pkgver}/build
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
install -Dm644 "$pkgdir/usr/share/SFML/cmake/Modules/FindSFML.cmake" "$pkgdir/usr/share/cmake-3.0/Modules/FindSFML.cmake"
|
|
|
|
install -Dm644 ../license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|
|
|