[arch-commits] Commit in libnest2d/repos (3 files)

Jelle van der Waa jelle at archlinux.org
Fri Jan 1 15:30:12 UTC 2021


    Date: Friday, January 1, 2021 @ 15:30:12
  Author: jelle
Revision: 802668

archrelease: copy trunk to community-x86_64

Added:
  libnest2d/repos/community-x86_64/
  libnest2d/repos/community-x86_64/PKGBUILD
    (from rev 802667, libnest2d/trunk/PKGBUILD)
  libnest2d/repos/community-x86_64/fix-cpp-version.patch
    (from rev 802667, libnest2d/trunk/fix-cpp-version.patch)

-----------------------+
 PKGBUILD              |   37 +++++++++++++++++++++++++++++++++++++
 fix-cpp-version.patch |   11 +++++++++++
 2 files changed, 48 insertions(+)

Copied: libnest2d/repos/community-x86_64/PKGBUILD (from rev 802667, libnest2d/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-01-01 15:30:12 UTC (rev 802668)
@@ -0,0 +1,37 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org
+
+pkgname=libnest2d
+pkgver=0.4
+pkgrel=1
+pkgdesc='2D irregular bin packaging and nesting library written in modern C++'
+arch=(x86_64)
+url='https://github.com/tamasmeszaros/libnest2d'
+license=('LGPL')
+depends=(nlopt polyclipping)
+makedepends=(boost cmake git)
+source=(git+https://github.com/tamasmeszaros/libnest2d#commit=da4782500da4eb8cb6e38e5e3f10164ec5a59778
+        allow-disallowed-area.patch::https://patch-diff.githubusercontent.com/raw/tamasmeszaros/libnest2d/pull/18.patch
+        fix-cpp-version.patch)
+sha512sums=('SKIP'
+            '3aa147e48671f61e15f1c779bf96852a62c5ec9d2dce7e4d2fa10e72769342f45961598ef961306a206455e86f3d9a2544ab7b03e28937541e88d98a6b34d491'
+            '956919502f9110a79729c74745a9095fa82c9f914f6b527fc91ea4f2864960a5437588efa6cd50cdb4970b51ae05cbdae48913f80357a38342b494cd416ba28e')
+
+prepare() {
+  cd ${pkgname}
+  # https://github.com/tamasmeszaros/libnest2d/pull/18
+  patch -Np1 -i ${srcdir}/allow-disallowed-area.patch
+
+  patch -Np1 -i ${srcdir}/fix-cpp-version.patch
+
+  mkdir build
+}
+
+build() {
+  cd ${pkgname}/build
+  cmake .. -DLIBNEST2D_HEADER_ONLY=OFF -DCMAKE_INSTALL_PREFIX=/usr
+}
+
+package() {
+  cd ${pkgname}/build
+  make DESTDIR="${pkgdir}" install
+}

Copied: libnest2d/repos/community-x86_64/fix-cpp-version.patch (from rev 802667, libnest2d/trunk/fix-cpp-version.patch)
===================================================================
--- community-x86_64/fix-cpp-version.patch	                        (rev 0)
+++ community-x86_64/fix-cpp-version.patch	2021-01-01 15:30:12 UTC (rev 802668)
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.1)
+
+ project(Libnest2D)
+
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 14)
+ set(CMAKE_CXX_STANDARD_REQUIRED)
+
+ # Add our own cmake module path.



More information about the arch-commits mailing list