aboutsummaryrefslogtreecommitdiffstats
path: root/testing/csfml/APKBUILD
blob: b557d1854db6eb530b96b0de4c24d207cadeaece (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=csfml
pkgver=2.5.1
pkgrel=0
pkgdesc="C bindings for SFML"
url="https://www.sfml-dev.org/"
arch="all"
license="Zlib"
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() {
	cmake . \
		-DCMAKE_BUILD_TYPE=None \
		-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="
353baf9879d1c96c04761c3d734822f35fea2b420e7c1b880caef56fabd34d9b10a31772cd3e5bcb86e3c50d6c4552aa69a0351e3d29cb4156a3f1758e7b7fc2  csfml-2.5.1.tar.gz
"