wok-next diff cgal/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | a244e109372e |
children | d635206a5649 |
line diff
1.1 --- a/cgal/receipt Tue Aug 21 00:41:54 2018 +0300 1.2 +++ b/cgal/receipt Fri Nov 02 14:15:08 2018 +0200 1.3 @@ -1,43 +1,35 @@ 1.4 # SliTaz package receipt v2. 1.5 1.6 PACKAGE="cgal" 1.7 -SOURCE="CGAL" 1.8 VERSION="4.11" 1.9 CATEGORY="misc" 1.10 -SHORT_DESC="Computational Geometry Algorithms Library." 1.11 +SHORT_DESC="Computational Geometry Algorithms Library" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL3 LGPL3" 1.14 -TARBALL="$SOURCE-$VERSION.tar.xz" 1.15 WEB_SITE="https://www.cgal.org/" 1.16 + 1.17 +TARBALL="CGAL-$VERSION.tar.xz" 1.18 WGET_URL="https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$VERSION/$TARBALL" 1.19 1.20 BUILD_DEPENDS="cmake boost-dev gmp-dev mpfr-dev boost-thread" 1.21 -SPLIT="cgal cgal-dev" 1.22 +SPLIT="$PACKAGE-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - cmake -DCMAKE_INSTALL_PREFIX=/usr . 1.28 - make 1.29 +compile_rules() { 1.30 + cmake \ 1.31 + -DCMAKE_INSTALL_PREFIX=/usr \ 1.32 + . && 1.33 + make && 1.34 make install 1.35 } 1.36 1.37 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.38 -genpkg_rules() 1.39 -{ 1.40 +genpkg_rules() { 1.41 case $PACKAGE in 1.42 - cgal) 1.43 - DEPENDS="boost-thread boost-system gcc-lib-base" 1.44 - mkdir -p $fs/usr/lib 1.45 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.46 - ;; 1.47 - cgal-dev) 1.48 - CAT="development|Computational Geometry Algorithms Library, development files." 1.49 - DEPENDS="cgal" 1.50 - mkdir -p $fs/usr/lib 1.51 - cp -a $install/usr/include $fs/usr 1.52 - cp -a $install/usr/bin $fs/usr 1.53 - cp -a $install/usr/lib/CGAL $fs/usr/lib 1.54 + cgal) 1.55 + copy @std 1.56 + DEPENDS="boost-thread boost-system gcc-lib-base" 1.57 + ;; 1.58 + *-dev) 1.59 + copy @dev 1.60 ;; 1.61 esac 1.62 }