diff options
author | Daniel Sabogal <dsabogalcc@gmail.com> | 2017-09-14 17:27:34 -0400 |
---|---|---|
committer | Daniel Sabogal <dsabogalcc@gmail.com> | 2017-09-19 19:27:14 -0400 |
commit | ce23ad24b52791d3c812c2024dba3031cca94c72 (patch) | |
tree | c3c7c8b910526ffeae7641e417b5540ab7523a34 /testing/sfml | |
parent | 185f4032bfaa74a1f5b410dca4fb482cc210279f (diff) | |
download | aports-ce23ad24b52791d3c812c2024dba3031cca94c72.tar.bz2 aports-ce23ad24b52791d3c812c2024dba3031cca94c72.tar.xz |
testing/sfml: new aport
https://www.sfml-dev.org/
Simple and Fast Multimedia Library
Diffstat (limited to 'testing/sfml')
-rw-r--r-- | testing/sfml/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/sfml/APKBUILD b/testing/sfml/APKBUILD new file mode 100644 index 0000000000..7b067b861e --- /dev/null +++ b/testing/sfml/APKBUILD @@ -0,0 +1,43 @@ +# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com> +pkgname=sfml +pkgver=2.4.2 +pkgrel=0 +pkgdesc="Simple and Fast Multimedia Library" +url="https://www.sfml-dev.org/" +arch="all" +license="zlib" +depends="" +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" +subpackages="$pkgname-dev:_dev $pkgname-doc" +options="!check" +source="$pkgname-$pkgver.tar.gz::https://github.com/SFML/SFML/archive/$pkgver.tar.gz" +builddir="$srcdir/SFML-$pkgver" + +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 +} + +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 +} + +_dev() { + default_dev + + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/SFML/cmake "$subpkgdir"/usr/share +} + +sha512sums="8acfdf320939c953a9a3413398f82d02d68a56a337f1366c2677c14ce032baa8ba059113ac3c91bb6e6fc22eef119369a265be7ef6894526e6a97a01f37e1972 sfml-2.4.2.tar.gz" |