# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com> setvar pkgname = 'sfml' setvar pkgver = '2.4.2' setvar pkgrel = '0' setvar pkgdesc = ""Simple and Fast Multimedia Library"" setvar url = ""https://www.sfml-dev.org/"" setvar arch = ""all"" setvar license = ""zlib"" setvar depends = """" setvar makedepends = ""cmake doxygen eudev-dev flac-dev freetype-dev jpeg-dev mesa-dev libpng-dev libogg-dev libvorbis-dev libx11-dev libxrandr-dev libxcb-dev openal-soft-dev xcb-util-image zlib-dev"" setvar subpackages = ""$pkgname-dev:_dev $pkgname-doc"" setvar options = ""!check"" setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/SFML/SFML/archive/$pkgver.tar.gz"" setvar builddir = ""$srcdir/SFML-$pkgver"" proc build { mkdir -p "$builddir"/build cd "$builddir"/build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSFML_BUILD_DOC=TRUE \ -DSFML_INSTALL_PKGCONFIG_FILES=TRUE make } proc package { make DESTDIR="$pkgdir" -C "$builddir"/build install mkdir -p "$pkgdir"/usr/share/doc mv "$pkgdir"/usr/share/SFML/doc "$pkgdir"/usr/share/doc/SFML } proc _dev { default_dev mkdir -p "$subpkgdir"/usr/share mv "$pkgdir"/usr/share/SFML/cmake "$subpkgdir"/usr/share } setvar sha512sums = ""8acfdf320939c953a9a3413398f82d02d68a56a337f1366c2677c14ce032baa8ba059113ac3c91bb6e6fc22eef119369a265be7ef6894526e6a97a01f37e1972 sfml-2.4.2.tar.gz""