mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
40 lines
1.0 KiB
Bash
40 lines
1.0 KiB
Bash
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
pkgname=sfml
|
|
_commit=4a300547f3
|
|
pkgver=2.1.0.$_commit
|
|
pkgrel=1
|
|
pkgdesc='A simple, fast, cross-platform, and object-oriented multimedia API'
|
|
arch=('i686' 'x86_64')
|
|
url='http://www.sfml-dev.org/'
|
|
license=('zlib')
|
|
depends=('libsndfile' 'libxrandr' 'libjpeg' 'openal' 'glew' 'freetype2')
|
|
makedepends=('mesa' 'cmake' 'doxygen' 'git')
|
|
source=("git+https://github.com/LaurentGomila/SFML.git#commit=${_commit}")
|
|
md5sums=('SKIP')
|
|
|
|
build() {
|
|
cd "$srcdir"/SFML
|
|
|
|
mkdir 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/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"
|
|
}
|
|
|