summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorunclejimbo2020-12-08 20:08:53 +0800
committerunclejimbo2020-12-08 20:08:53 +0800
commit30028e69078829ed4f1d249c315b6947e9c0cb78 (patch)
treea933126fabce93729c5a8921307f461402f6a084
downloadaur-30028e69078829ed4f1d249c315b6947e9c0cb78.tar.gz
Add CGAL-5.1.1
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD36
2 files changed, 55 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..08c6352cfc2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = cgal-headers
+ pkgdesc = The Computational Geometry Algorithms Library.
+ pkgver = 5.1.1
+ pkgrel = 1
+ url = https://www.cgal.org/
+ arch = any
+ license = GPL
+ license = LGPL
+ makedepends = cmake
+ depends = mpfr
+ depends = gmp
+ depends = boost
+ provides = cgal
+ conflicts = cgal
+ source = https://github.com/CGAL/cgal/releases/download/v5.1.1/CGAL-5.1.1-library.tar.xz
+ sha512sums = 3abbc92ae320765a4c4bd9980ff24af0d3484c4ed298f201e75b4cf44df47562d1c649b2edebb1b4a74bd3c57784d64536de2d1e03ad4e34aa8e394b722e03c3
+
+pkgname = cgal-headers
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..10a7718df30
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Shaodong Wang unclejimbo@qq.com
+pkgname=cgal-headers
+_pkgname=CGAL
+pkgver=5.1.1
+pkgrel=1
+pkgdesc="The Computational Geometry Algorithms Library."
+arch=('any')
+url='https://www.cgal.org/'
+license=('GPL' 'LGPL')
+depends=('mpfr' 'gmp' 'boost')
+makedepends=('cmake')
+source=("https://github.com/CGAL/cgal/releases/download/v${pkgver}/${_pkgname}-${pkgver}-library.tar.xz")
+sha512sums=('3abbc92ae320765a4c4bd9980ff24af0d3484c4ed298f201e75b4cf44df47562d1c649b2edebb1b4a74bd3c57784d64536de2d1e03ad4e34aa8e394b722e03c3')
+provides=('cgal')
+conflicts=('cgal')
+
+prepare () {
+ mkdir -p "${srcdir}/${_pkgname}-${pkgver}/build"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}/build"
+ cmake ../ \
+ -DCGAL_HEADER_ONLY=ON \
+ -DWITH_CGAL_Core=OFF \
+ -DWITH_CGAL_ImageIO=OFF \
+ -DWITH_CGAL_Qt5=OFF \
+ -DBUILD_SHARED_LIBS=OFF \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}/build"
+ make DESTDIR="$pkgdir" install
+}