Received: from out0.migadu.com (out0.migadu.com [94.23.1.103]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id B36CD78076C for <~alpine/aports@lists.alpinelinux.org>; Wed, 2 Mar 2022 20:49:47 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmpwn.com; s=key1; t=1646253653; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=XBhJ6WbPB5L6aziYQb76JPPOlldWxQCImN2M//pxF60=; b=rLUGOSv3gnCR5uig7xC3UGFC1EBdJxUKHiZ1/8+sy8J/Qp7NRfF5JQFI3Ej2a8+yqwDWIe QI3Oc3lRgKIiIobwVLPqgU6evFZmGzsFiB0jyLY5osiHqAl/5TAQHH5JuMrqEZgjovLW4d l2uLW6NQyJsHYRL06u7/zXfp8/pyYznoLy915adTcr+UanhT8ZYcerlh9HlMkF99r8+jmR et8P2ap1jGnvaQtJJsuAJt6sl8TfU/3MCYyTuQ+F+m+zHBx1iXGyZZVgz4i4+h5hf+Lq3w Z3Ti5pRmY5AsUHIrtZt28TmyRXQ22XfOzixtRu6rTCvVpcIHaZPvxDl1yBwdvQ== From: Drew DeVault To: ~alpine/aports@lists.alpinelinux.org Cc: Drew DeVault Subject: [PATCH] community/sfml: build static libraries Date: Wed, 2 Mar 2022 21:40:51 +0100 Message-Id: <20220302204051.1093-1-sir@cmpwn.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: cmpwn.com --- 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 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