wok-next diff attica/receipt @ rev 20762
Add leanify
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jun 05 17:27:09 2018 +0300 (2018-06-05) |
parents | 3c7caf706580 |
children | d5aab818505e |
line diff
1.1 --- a/attica/receipt Sat Feb 22 11:25:58 2014 +0100 1.2 +++ b/attica/receipt Tue Jun 05 17:27:09 2018 +0300 1.3 @@ -1,22 +1,20 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="attica" 1.8 VERSION="0.4.2" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="Qt library that implements the Open Collaboration Services API." 1.11 +SHORT_DESC="Qt library that implements the Open Collaboration Services API" 1.12 MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="LGPL2.1" 1.14 +WEB_SITE="http://www.kde.org/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -WEB_SITE="http://www.kde.org/" 1.18 WGET_URL="ftp://ftp.kde.org/pub/kde/stable/attica/$TARBALL" 1.19 1.20 -DEPENDS="libQtCore libQtNetwork" 1.21 BUILD_DEPENDS="cmake qmake Qt4-dev" 1.22 +SPLIT="attica-dev" 1.23 1.24 -# Rules to configure and make the package. 1.25 -compile_rules() 1.26 -{ 1.27 - cd $src 1.28 +compile_rules() { 1.29 mkdir -p build && cd build 1.30 cmake \ 1.31 -DCMAKE_INSTALL_PREFIX=/usr \ 1.32 @@ -25,9 +23,14 @@ 1.33 make DESTDIR=$DESTDIR install 1.34 } 1.35 1.36 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.37 -genpkg_rules() 1.38 -{ 1.39 - mkdir -p $fs/usr/lib 1.40 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.41 +genpkg_rules() { 1.42 + case $PACKAGE in 1.43 + attica) 1.44 + copy @std 1.45 + DEPENDS="libQtCore libQtNetwork" 1.46 + ;; 1.47 + *-dev) 1.48 + copy @dev 1.49 + ;; 1.50 + esac 1.51 }