wok-next diff libev/receipt @ rev 20464
Combine receipts (final)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 07 19:43:44 2018 +0200 (2018-03-07) |
parents | c4e53a39395a |
children | 9e5dca6702bf |
line diff
1.1 --- a/libev/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/libev/receipt Wed Mar 07 19:43:44 2018 +0200 1.3 @@ -1,26 +1,38 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libev" 1.8 VERSION="4.04" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="A full-featured and high-performance event loop." 1.11 +SHORT_DESC="A full-featured and high-performance event loop" 1.12 MAINTAINER="mallory@sweetpeople.org" 1.13 LICENSE="BSD" 1.14 +WEB_SITE="http://software.schmorp.de/pkg/libev.html" 1.15 + 1.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.17 -WEB_SITE="http://software.schmorp.de/pkg/libev.html" 1.18 WGET_URL="http://dist.schmorp.de/libev/$TARBALL" 1.19 1.20 -# Rules to configure and make the package. 1.21 -compile_rules() 1.22 -{ 1.23 +SPLIT="libev-dev" 1.24 + 1.25 +compile_rules() { 1.26 ./configure $CONFIGURE_ARGS && 1.27 make && make install 1.28 } 1.29 1.30 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 -genpkg_rules() 1.32 -{ 1.33 - mkdir -p $fs/usr/lib 1.34 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.35 +genpkg_rules() { 1.36 + case $PACKAGE in 1.37 + libev) 1.38 + mkdir -p $fs/usr/lib 1.39 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.40 + ;; 1.41 + *-dev) 1.42 + mkdir -p $fs/usr/lib 1.43 + cp -a $install/usr/include $fs/usr 1.44 + cp -a $install/usr/lib/*.*a $fs/usr/lib 1.45 + #cp -a $install/usr/lib/pkgconfig $fs/usr/lib 1.46 + # /usr/include/event.h conflicts with libevent-dev 1.47 + # https://www.opencsw.org/mantis/view.php?id=4376 1.48 + mv $fs/usr/include/event.h $fs/usr/include/ev-event.h 1.49 + ;; 1.50 + esac 1.51 } 1.52