desktop/sfml/PKGBUILD

37 lines
994 B
Bash
Raw Normal View History

2015-05-21 18:13:10 +08:00
# Contribution from Arch https://www.archlinux.org/packages/community/x86_64/sfml/
pkgname=sfml
2018-11-20 08:41:09 +08:00
pkgver=2.5.1
2014-10-09 22:17:25 +08:00
pkgrel=1
2014-10-09 22:22:35 +08:00
pkgdesc='A simple, fast, cross-platform, and object-oriented multimedia API'
2015-05-21 18:13:10 +08:00
arch=('x86_64')
2018-11-20 08:41:09 +08:00
url='https://www.sfml-dev.org/'
2014-10-09 22:22:35 +08:00
license=('zlib')
2018-11-20 08:41:09 +08:00
depends=('libsndfile' 'libxrandr' 'libjpeg' 'openal' 'glew' 'freetype2' 'xcb-util-image' 'libx11')
makedepends=('mesa' 'cmake' 'doxygen' 'systemd')
2015-05-21 18:13:10 +08:00
source=("https://github.com/SFML/SFML/archive/${pkgver}.tar.gz")
2018-11-20 08:41:09 +08:00
sha256sums=('438c91a917cc8aa19e82c6f59f8714da353c488584a007d401efac8368e1c785')
build() {
2015-05-21 18:13:10 +08:00
cd "$srcdir"/SFML-${pkgver}
2015-05-21 18:13:10 +08:00
mkdir -p build && cd build
2014-10-09 22:22:35 +08:00
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
2018-11-20 08:41:09 +08:00
-SFML_USE_SYSTEM_DEPS=ON \
2014-10-09 22:22:35 +08:00
-DSFML_BUILD_EXAMPLES=1 \
-DSFML_BUILD_DOC=1 \
2018-11-20 08:41:09 +08:00
-DSFML_INSTALL_PKGCONFIG_FILES=1
make
2014-10-09 22:22:35 +08:00
make doc
}
package() {
2015-05-21 18:13:10 +08:00
cd "$srcdir"/SFML-${pkgver}/build
2013-02-05 05:56:16 +08:00
make DESTDIR="$pkgdir/" install
2018-11-20 08:41:09 +08:00
install -Dm644 ../license.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
2014-10-09 22:22:35 +08:00