wok-undigest view wwwsqldesigner/receipt @ rev 878
Up systemd (195)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 06 13:28:32 2012 +0100 (2012-11-06) |
parents | |
children | 135ad0e1fc7d |
line source
1 # SliTaz package receipt.
3 PACKAGE="wwwsqldesigner"
4 VERSION="2.6"
5 CATEGORY="development"
6 SHORT_DESC="Js SQL designer"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 WEB_SITE="http://ondras.zarovi.cz/sql/demo/"
10 # Rules to configure and make the package.
11 compile_rules()
12 {
13 mkdir -p $DESTDIR/var/www/$PACKAGE $DESTDIR/usr/share/applications
14 cd $DESTDIR/var/www/$PACKAGE
15 for i in license.txt index.html ; do
16 wget $WEB_SITE$i
17 for j in $(sed '/href="/!d;s/.*href="\([^"]*\)".*/\1/' $i) \
18 $(sed '/src="/!d;s/.*src="\([^"]*\)".*/\1/' $i) ; do
19 case "$j" in
20 *tp:/*);;
21 *) [ -d $(dirname $j) ] || mkdir -p $(dirname $j)
22 wget -O $j $WEB_SITE$j ;;
23 esac
24 done
25 done
26 cat > $DESTDIR/usr/share/applications/$PACKAGE.desktop <<EOT
27 [Desktop Entry]
28 Type=Application
29 Name=$PACKAGE
30 Exec=browser file:///var/www/$PACKAGE/index.html
31 Terminal=false
32 Categories=Development;
33 Comment=$SHORT_DESC
34 EOT
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $_pkg/* $fs/
41 }