[arch-commits] Commit in cgal/trunk (PKGBUILD)
Bruno Pagani
archange at gemini.archlinux.org
Tue Mar 15 21:17:12 UTC 2022
Date: Tuesday, March 15, 2022 @ 21:17:12
Author: archange
Revision: 1155183
upgpkg: cgal 5.4-1
This is now an headers-only library.
Modified:
cgal/trunk/PKGBUILD
----------+
PKGBUILD | 42 +++++++++++++++---------------------------
1 file changed, 15 insertions(+), 27 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-03-15 21:15:33 UTC (rev 1155182)
+++ PKGBUILD 2022-03-15 21:17:12 UTC (rev 1155183)
@@ -1,39 +1,27 @@
# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
# Contributor: Dmitriy Morozov <foxcub>
pkgname=cgal
-pkgver=4.14.3
-pkgrel=3
+pkgver=5.4
+pkgrel=1
pkgdesc="Computational Geometry Algorithms Library"
-arch=('x86_64')
+arch=(any)
url="https://www.cgal.org"
-license=('GPL' 'LGPL')
-source=("https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$pkgver/CGAL-$pkgver.tar.xz")
-depends=('mpfr' 'gmp' 'mesa' 'glu' 'boost-libs')
-optdepends=('qt5-svg: for CGAL_Qt5'
- 'eigen: for some packages, see the CGAL manual')
-makedepends=('cmake' 'qt5-svg' 'eigen' 'boost')
-md5sums=('41c56ad048ce882aae6ff5b56256fe95')
+license=(GPL LGPL)
+depends=(boost eigen gmp mpfr)
+makedepends=(cmake)
+source=(https://github.com/CGAL/cgal/releases/download/v${pkgver}/CGAL-${pkgver}.tar.xz)
+# https://github.com/CGAL/cgal/releases/download/v${pkgver}/sha256sum.txt
+sha256sums=(b3d735ec42fd65ac1413c70e7a197bf3d971e4499347ccfaad92cc82d62dc256)
-# consider building with swig for python stuff
-# https://gforge.inria.fr/frs/?group_id=52 for _pkgid
-
-# 4.8 supposedly does not depend on boost? good luck...
-
build() {
- cd "$srcdir/CGAL-$pkgver"
- mkdir -p build
- cd build
- cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib
- make
+ cmake -B build -S CGAL-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make -C build
}
package() {
- cd "$srcdir/CGAL-$pkgver/build"
- make install DESTDIR="$pkgdir"
-
- # The tarball still has all these licenses included
- for _license in LICENSE{,.FREE_USE,.GPL,.LGPL}; do
- install -D -m644 "$srcdir/CGAL-$pkgver/$_license" "$pkgdir/usr/share/licenses/$pkgname/$_license"
- done
+ make -C build DESTDIR="${pkgdir}" install
+ rm -r "${pkgdir}"/usr/share
}
More information about the arch-commits
mailing list