[arch-commits] Commit in lib3mf-1/trunk (PKGBUILD)

Jonas Witschel diabonas at archlinux.org
Mon Mar 30 10:44:44 UTC 2020


    Date: Monday, March 30, 2020 @ 10:44:43
  Author: diabonas
Revision: 606738

upgpkg: lib3mf-1 1.8.1-4: respect makepkg CPPFLAGS

Also add a libprovides and use the hash of the commit merged upstream.

Modified:
  lib3mf-1/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-30 10:36:40 UTC (rev 606737)
+++ PKGBUILD	2020-03-30 10:44:43 UTC (rev 606738)
@@ -1,7 +1,7 @@
 # Maintainer: Jonas Witschel <diabonas at archlinux.org>
 pkgname=lib3mf-1
 pkgver=1.8.1
-pkgrel=3
+pkgrel=4
 pkgdesc='Implementation of the 3D Manufacturing Format file standard (legacy version)'
 arch=('x86_64')
 url='https://3mf.io/'
@@ -9,15 +9,15 @@
 depends=('libzip' 'zlib') 
 makedepends=('cmake')
 checkdepends=('gtest')
+provides=('lib3MF.so')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/3MFConsortium/lib3mf/archive/v$pkgver.tar.gz"
         'lib3mf-1_use-system-gtest.patch::https://github.com/3MFConsortium/lib3mf/commit/cf679cc3736d4b22ce5711b5e81d28b7b6f4f4b0.patch'
-        'lib3mf-1_link-libzip-and-zlib.patch::https://github.com/3MFConsortium/lib3mf/commit/07dec180622d6a3b94b915ae3716a926b2cd473b.patch')
+        'lib3mf-1_link-libzip-and-zlib.patch::https://github.com/3MFConsortium/lib3mf/commit/093f2d95045dac25844936a72d5d8134a6265b20.patch')
 sha512sums=('f7fd75bcb6472de1595a018e5add516d0d78ab0aee92462b686b77f8d2bef05270e7b737cb7e1d31fc5850815056e753874c2f9ec456a455e8461c4010fe914a'
             '84da1e659ed52582aca3c6f9ce2b234aad000e96bb657ff2aa7d118a613d5bca9b3f05f117f5db0a91440a9d51494730a637ed844ca4adb4887f357c15394663'
-            '198fb50372222499e537ab350e5f5bad5563870bd8ee4eb5d3f34fb0543c0b119dc13355b6363e172c258c3b943450dd90195a62f398b60929f6eaf50e140945')
+            '9fbe47bf940ccee60c759c47432b596eb8882c2bcf393853f1ff951bb8e662dc0f525768b4b9e02412e96a8814d6f55f61f1a90e74cbb61e331c31984ef6427e')
 
 prepare() {
-	mkdir build
 	cd "${pkgname%-1}-$pkgver"
 	patch --strip=1 --input="$srcdir/lib3mf-1_use-system-gtest.patch"
 	patch --strip=1 --input="$srcdir/lib3mf-1_link-libzip-and-zlib.patch"
@@ -24,12 +24,12 @@
 }
 
 build() {
-	cd build
 	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_INCLUDEDIR="include/$pkgname" \
+	      -DCMAKE_CXX_FLAGS="${CXXFLAGS} ${CPPFLAGS}" \
 	      -DUSE_INCLUDED_LIBZIP=OFF -DUSE_INCLUDED_ZLIB=OFF -DUSE_INCLUDED_GTEST=OFF \
-	      $( ((CHECKFUNC)) || echo -DLIB3MF_TESTS=OFF) \
-	      "$srcdir/${pkgname%-1}-$pkgver"
-	make
+	      -$( ((CHECKFUNC)) || echo -DLIB3MF_TESTS=OFF) \
+	      -B build -S "$srcdir/${pkgname%-1}-$pkgver"
+	make -C build
 }
 
 check() {



More information about the arch-commits mailing list