mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
36 lines
989 B
Bash
36 lines
989 B
Bash
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves@gmail.com>
|
|
|
|
pkgname=sfml
|
|
pkgver=2.0.rc1
|
|
_pkgver=2.0rc1
|
|
pkgrel=2
|
|
pkgdesc="A simple, fast, cross-platform and object-oriented multimedia API."
|
|
arch=('x86_64')
|
|
url="http://www.sfml-dev.org"
|
|
license=('ZLIB')
|
|
depends=('freetype2' 'glew' 'libjpeg-turbo' 'libsndfile' 'libxrandr' 'openal' 'soil')
|
|
makedepends=('mesa' 'doxygen' 'cmake')
|
|
source=("2.0-rc.tar.gz::https://github.com/LaurentGomila/SFML/tarball/2.0-rc")
|
|
md5sums=('03c8e6817f4525092b94a3d44e8eada8')
|
|
|
|
build() {
|
|
cd "$srcdir"/Laurent*
|
|
|
|
mkdir build && cd build
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr .. \
|
|
-DBUILD_DOC=true \
|
|
-DBUILD_EXAMPLES=true
|
|
make
|
|
make doc
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"/Laurent*/build
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
install -Dm644 "$pkgdir/usr/share/SFML/cmake/Modules/FindSFML.cmake" "$pkgdir/usr/share/cmake-2.8/Modules/FindSFML.cmake"
|
|
|
|
install -Dm644 ../license.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
}
|