diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -2,20 +2,26 @@ # Contributor: Hannes Graeuler < hgraeule [at] uos [dot] de > pkgname=sfcgal -pkgver=1.3.8 +pkgver=v1.3.9 pkgrel=1 pkgdesc="Wrapper around the CGAL library that intents to implement 2D and 3D operations on OGC standards models" arch=('i686' 'x86_64') -url="https://oslandia.github.io/SFCGAL/index.html" +url="https://gitlab.com/Oslandia/SFCGAL" license=('GPL2') provides=('sfcgal') depends=('cgal>=4.1' 'boost' 'gmp' 'mpfr' 'openscenegraph') -makedepends=('cmake') -source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/Oslandia/SFCGAL/archive/v${pkgver}.tar.gz") -sha256sums=('5154bfc67a5e99d95cb653d70d2b9d9293d3deb3c8f18b938a33d68fec488a6d') +makedepends=('git' 'cmake') +_commit=823db7a318b8841f8296e80036ef993ddf19ebf5 # tags/1.3.9^0 +source=("git+${url}#commit=${_commit}") +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/SFCGAL" + git describe --tags | sed 's/-/+/g' +} build() { - cd ${srcdir}/SFCGAL-${pkgver} + cd "${srcdir}/SFCGAL" mkdir -p build && cd build cmake -Wno-dev \ -DCMAKE_INSTALL_PREFIX=/usr \ @@ -28,7 +34,7 @@ build() { } package() { - cd ${srcdir}/SFCGAL-${pkgver}/build + cd ${srcdir}/SFCGAL/build make DESTDIR=${pkgdir} install # Remove conflict with cgal package rm -rf ${pkgdir}/usr/include/CGAL |