wok-next diff libasyncns/receipt @ rev 20533
cairo-clock, grub4dos: fix CFLAGS
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 27 12:50:45 2018 +0200 (2018-03-27) |
parents | 76b72f1ad63c |
children | 9e5dca6702bf |
line diff
1.1 --- a/libasyncns/receipt Sat Aug 10 11:00:21 2013 +0000 1.2 +++ b/libasyncns/receipt Tue Mar 27 12:50:45 2018 +0200 1.3 @@ -1,21 +1,20 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libasyncns" 1.8 VERSION="0.8" 1.9 CATEGORY="development" 1.10 -SHORT_DESC="A C library for Linux/Unix for executing name service queries asynchronously." 1.11 +SHORT_DESC="A C library for Linux/Unix for executing name service queries \ 1.12 +asynchronously" 1.13 MAINTAINER="slaxemulator@gmail.com" 1.14 LICENSE="LGPL2.1" 1.15 +WEB_SITE="http://0pointer.de/lennart/projects/libasyncns" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://0pointer.de/lennart/projects/libasyncns" 1.19 WGET_URL="$WEB_SITE/$TARBALL" 1.20 1.21 -DEPENDS="glibc-base" 1.22 +SPLIT="libasyncns-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 ./configure \ 1.30 --prefix=/usr \ 1.31 --infodir=/usr/share/info \ 1.32 @@ -25,10 +24,18 @@ 1.33 make && 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 + libasyncns) 1.44 + mkdir -p $fs/usr/lib 1.45 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.46 + DEPENDS="glibc-base" 1.47 + ;; 1.48 + *-dev) 1.49 + mkdir -p $fs/usr/lib 1.50 + cp -a $install/usr/include $fs/usr 1.51 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.52 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.53 + ;; 1.54 + esac 1.55 } 1.56 -