wok-next diff ossp-uuid/receipt @ rev 20462
Combine receipts
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Mar 06 03:00:01 2018 +0200 (2018-03-06) |
parents | c75c436df3e4 |
children | 9e5dca6702bf |
line diff
1.1 --- a/ossp-uuid/receipt Wed Jan 21 12:15:35 2015 +0100 1.2 +++ b/ossp-uuid/receipt Tue Mar 06 03:00:01 2018 +0200 1.3 @@ -1,30 +1,39 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="ossp-uuid" 1.8 -SOURCE="uuid" 1.9 VERSION="1.6.1" 1.10 CATEGORY="base-system" 1.11 SHORT_DESC="Universally Unique Identifier tools" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="MIT" 1.14 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.15 WEB_SITE="http://www.ossp.org/pkg/lib/uuid/" 1.16 -WGET_URL="ftp://ftp.ossp.org/pkg/lib/$SOURCE/$TARBALL" 1.17 1.18 -# Rules to configure and make the package. 1.19 -compile_rules() 1.20 -{ 1.21 - ./configure --prefix=/usr \ 1.22 +TARBALL="uuid-$VERSION.tar.gz" 1.23 +WGET_URL="ftp://ftp.ossp.org/pkg/lib/uuid/$TARBALL" 1.24 + 1.25 +SPLIT="ossp-uuid-dev" 1.26 + 1.27 +compile_rules() { 1.28 + ./configure \ 1.29 + --prefix=/usr \ 1.30 --mandir=/usr/share/man \ 1.31 $CONFIGURE_ARGS && 1.32 make && 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/bin $fs/usr 1.41 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.42 +genpkg_rules() { 1.43 + case $PACKAGE in 1.44 + ossp-uuid) 1.45 + mkdir -p $fs/usr/lib 1.46 + cp -a $install/usr/bin $fs/usr 1.47 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.48 + ;; 1.49 + *-dev) 1.50 + mkdir -p $fs/usr/lib 1.51 + cp -a $install/usr/include $fs/usr 1.52 + cp -a $install/usr/lib/*a $fs/usr/lib 1.53 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.54 + ;; 1.55 + esac 1.56 }