~alpine/aports

community/sfml: build static libraries v1 REJECTED

Drew DeVault: 1
 community/sfml: build static libraries

 1 files changed, 14 insertions(+), 5 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/3963/mbox | git am -3
Learn more about email & git

[PATCH] community/sfml: build static libraries Export this patch

---
 community/sfml/APKBUILD | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/community/sfml/APKBUILD b/community/sfml/APKBUILD
index 5ab219f88e..81f4c362a7 100644
--- a/community/sfml/APKBUILD
+++ b/community/sfml/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Daniel Sabogal <dsabogalcc@gmail.com>
pkgname=sfml
pkgver=2.5.1
pkgrel=2
pkgrel=3
pkgdesc="Simple and Fast Multimedia Library"
url="https://www.sfml-dev.org/"
arch="all"
@@ -15,16 +15,25 @@ source="https://github.com/SFML/SFML/archive/$pkgver/sfml-$pkgver.tar.gz"
builddir="$srcdir/SFML-$pkgver"

build() {
	cmake -B build \
	cmake -B build-shared \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DSFML_BUILD_DOC=TRUE \
		-DSFML_INSTALL_PKGCONFIG_FILES=TRUE
	cmake --build build
		-DSFML_INSTALL_PKGCONFIG_FILES=TRUE \
		-DBUILD_SHARED_LIBS=TRUE
	cmake --build build-shared

	cmake -B build-static \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DSFML_BUILD_DOC=TRUE \
		-DSFML_INSTALL_PKGCONFIG_FILES=TRUE \
		-DBUILD_SHARED_LIBS=FALSE
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
	DESTDIR="$pkgdir" cmake --build build-shared --target install
	DESTDIR="$pkgdir" cmake --build build-static --target install

	mkdir -p "$pkgdir"/usr/share/doc
	mv "$pkgdir"/usr/share/SFML/doc "$pkgdir"/usr/share/doc/SFML
-- 
2.35.1
you should add a -static before the -dev here too

-- 
via https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/31589#note_219862