aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sabogal <dsabogalcc@gmail.com>2017-09-14 17:28:01 -0400
committerDaniel Sabogal <dsabogalcc@gmail.com>2017-09-19 19:27:14 -0400
commitea5e2b770be4c0a45c12294b0eaa5d0767bd2658 (patch)
treec6de857154e7fa891d953ab673f1f74b2540e395
parentce23ad24b52791d3c812c2024dba3031cca94c72 (diff)
downloadaports-ea5e2b770be4c0a45c12294b0eaa5d0767bd2658.tar.bz2
aports-ea5e2b770be4c0a45c12294b0eaa5d0767bd2658.tar.xz
testing/csfml: new aport
https://www.sfml-dev.org/ C bindings for SFML
-rw-r--r--testing/csfml/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/csfml/APKBUILD b/testing/csfml/APKBUILD
new file mode 100644
index 0000000000..8f1fd53a39
--- /dev/null
+++ b/testing/csfml/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
+pkgname=csfml
+pkgver=2.4
+pkgrel=0
+pkgdesc="C bindings for SFML"
+url="https://www.sfml-dev.org/"
+arch="all"
+license="zlib"
+depends=""
+makedepends="cmake doxygen sfml-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+options="!check"
+source="$pkgname-$pkgver.tar.gz::https://github.com/SFML/CSFML/archive/$pkgver.tar.gz"
+
+builddir="$srcdir/CSFML-$pkgver"
+build() {
+ cd "$builddir"
+ cmake . \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCSFML_BUILD_DOC=TRUE \
+ -DCSFML_LINK_SFML_STATICALLY=FALSE \
+ -DSFML_DIR=/usr/share/SFML/cmake/Modules
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" -C "$builddir" install
+
+ mkdir -p "$pkgdir"/usr/share/doc
+ mv "$pkgdir"/usr/share/CSFML/doc "$pkgdir"/usr/share/doc/CSFML
+}
+
+sha512sums="6a194c2640002065219c6c562e5c3f41a3174d91d268c75609d6cd8f18e7f10fc33aa057b7d1aefcd63747448e551874b306eff816f579a965965d5195da988f csfml-2.4.tar.gz"