wok-next diff monkey/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 | d3eb5f4b53ea |
children | 757d032c55c7 |
line diff
1.1 --- a/monkey/receipt Thu Mar 26 09:34:19 2015 +0100 1.2 +++ b/monkey/receipt Tue Mar 27 12:50:45 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="monkey" 1.8 VERSION="1.5.6" 1.9 @@ -6,32 +6,43 @@ 1.10 SHORT_DESC="Lightweight HTTP server" 1.11 MAINTAINER="necrophcodr@necrophcodr.me" 1.12 LICENSE="APL2" 1.13 +WEB_SITE="http://monkey-project.com" 1.14 + 1.15 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.16 -WEB_SITE="http://monkey-project.com" 1.17 WGET_URL="$WEB_SITE/releases/${VERSION%.*}/$TARBALL" 1.18 1.19 -DEPENDS="" 1.20 BUILD_DEPENDS="findutils" 1.21 +SPLIT="monkey-dev" 1.22 1.23 -# Rules to configure and make the package. 1.24 -compile_rules() 1.25 -{ 1.26 - ./configure --enable-shared --prefix=/usr --datadir=/var/www \ 1.27 - --pidfile=/var/run/monkey.pid --sysconfdir=/etc/monkey \ 1.28 - --disable-plugins=mbedtls --mandir=/usr/share/man \ 1.29 - --plugdir=/usr/share/monkey/plugins && 1.30 +compile_rules() { 1.31 + ./configure \ 1.32 + --enable-shared \ 1.33 + --prefix=/usr \ 1.34 + --datadir=/var/www \ 1.35 + --pidfile=/var/run/monkey.pid \ 1.36 + --sysconfdir=/etc/monkey \ 1.37 + --disable-plugins=mbedtls \ 1.38 + --mandir=/usr/share/man \ 1.39 + --plugdir=/usr/share/monkey/plugins && 1.40 make && 1.41 make DESTDIR=$install install 1.42 } 1.43 1.44 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.45 -genpkg_rules() 1.46 -{ 1.47 - mkdir -p $fs/usr 1.48 - cp -a $install/usr/bin $fs/usr/ 1.49 - cp -a $install/usr/share $fs/usr/ 1.50 - cp -a $install/etc $fs/ 1.51 - cp -a $install/var $fs/ 1.52 - mkdir -p $fs/usr/share/monkey/samples 1.53 - mv $fs/var/www/ $fs/usr/share/monkey/samples/htdocs 1.54 +genpkg_rules() { 1.55 + case $PACKAGE in 1.56 + monkey) 1.57 + mkdir -p $fs/usr 1.58 + cp -a $install/usr/bin $fs/usr/ 1.59 + cp -a $install/usr/share $fs/usr/ 1.60 + cp -a $install/etc $fs/ 1.61 + cp -a $install/var $fs/ 1.62 + mkdir -p $fs/usr/share/monkey/samples 1.63 + mv $fs/var/www/ $fs/usr/share/monkey/samples/htdocs 1.64 + ;; 1.65 + *-dev) 1.66 + mkdir -p $fs/usr 1.67 + cp -a $install/usr/include $fs/usr 1.68 + cp -a $install/usr/lib $fs/usr 1.69 + ;; 1.70 + esac 1.71 }