wok-next diff mhash/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 | 3765f181a6d5 |
children | 9e5dca6702bf |
line diff
1.1 --- a/mhash/receipt Sat Nov 30 17:02:58 2013 +0000 1.2 +++ b/mhash/receipt Tue Mar 06 03:00:01 2018 +0200 1.3 @@ -1,29 +1,39 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="mhash" 1.8 VERSION="0.9.9.9" 1.9 CATEGORY="development" 1.10 -SHORT_DESC="uniform interface to a large number of hash algorithms." 1.11 +SHORT_DESC="Uniform interface to a large number of hash algorithms" 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 +WEB_SITE="http://mhash.sourceforge.net/" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.17 -WEB_SITE="http://mhash.sourceforge.net/" 1.18 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.19 1.20 -# Rules to configure and make the package. 1.21 -compile_rules() 1.22 -{ 1.23 - cd $src 1.24 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.25 - --mandir=/usr/share/man $CONFIGURE_ARGS 1.26 - make 1.27 +SPLIT="mhash-dev" 1.28 + 1.29 +compile_rules() { 1.30 + ./configure \ 1.31 + --prefix=/usr \ 1.32 + --infodir=/usr/share/info \ 1.33 + --mandir=/usr/share/man \ 1.34 + $CONFIGURE_ARGS && 1.35 + make && 1.36 make DESTDIR=$DESTDIR install 1.37 } 1.38 1.39 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.40 -genpkg_rules() 1.41 -{ 1.42 - mkdir -p $fs/usr/lib 1.43 - cp -a $install/usr/lib/libmhash.so* $fs/usr/lib 1.44 +genpkg_rules() { 1.45 + case $PACKAGE in 1.46 + mhash) 1.47 + mkdir -p $fs/usr/lib 1.48 + cp -a $install/usr/lib/libmhash.so* $fs/usr/lib 1.49 + ;; 1.50 + *-dev) 1.51 + mkdir -p $fs/usr/lib 1.52 + cp -a $install/usr/include $fs/usr 1.53 + cp -a $install/usr/lib/libmhash*a $fs/usr/lib 1.54 + ;; 1.55 + esac 1.56 } 1.57