wok-next rev 20999

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Oct 05 02:48:48 2018 +0300 (2018-10-05)
parents 782016c0454d
children 16b421afc294
files acme/receipt jclic/.icon.png jclic/receipt jclic/stuff/author.png jclic/stuff/jclic.desktop jclic/stuff/jclic.png jclic/stuff/jclicauthor.desktop jclic/stuff/jclicreports.desktop jclic/stuff/reports.png
line diff
     1.1 --- a/acme/receipt	Thu Oct 04 20:01:13 2018 +0300
     1.2 +++ b/acme/receipt	Fri Oct 05 02:48:48 2018 +0300
     1.3 @@ -1,20 +1,24 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="acme"
     1.7 -VERSION="0.91"
     1.8 +VERSION="0.96.1"
     1.9 +COMMIT="6f42edb" # 2017-03-29
    1.10  CATEGORY="development"
    1.11  SHORT_DESC="A Crossassembler for Multiple Environments (6502, 65c02 and 65816)"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="GPL2"
    1.14 -WEB_SITE="https://www.esw-heim.tu-clausthal.de/~marco/smorbrod/acme"
    1.15 +WEB_SITE="https://github.com/meonwax/acme"
    1.16  
    1.17 -TARBALL="$PACKAGE${VERSION/./}src.tar.bz2"
    1.18 -WGET_URL="$WEB_SITE/current/$TARBALL"
    1.19 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.20 +WGET_URL="https://github.com/meonwax/acme/archive/$COMMIT.tar.gz"
    1.21  
    1.22  compile_rules() {
    1.23  	cd $src/src
    1.24 -	make &&
    1.25 -	install -Dm755 $src/src/acme $install/usr/bin/acme
    1.26 +	make || return 1
    1.27 +
    1.28 +	install -Dm755 acme $install/usr/bin/acme
    1.29 +
    1.30 +	cook_pick_docs $src/README.md $src/docs/
    1.31  }
    1.32  
    1.33  genpkg_rules() {
     2.1 Binary file jclic/.icon.png has changed
     3.1 --- a/jclic/receipt	Thu Oct 04 20:01:13 2018 +0300
     3.2 +++ b/jclic/receipt	Fri Oct 05 02:48:48 2018 +0300
     3.3 @@ -1,33 +1,47 @@
     3.4 -# SliTaz package receipt.
     3.5 +# SliTaz package receipt v2.
     3.6  
     3.7  PACKAGE="jclic"
     3.8 -VERSION="0.2.1.0"
     3.9 +VERSION="0.3.2.9"
    3.10  CATEGORY="games"
    3.11  SHORT_DESC="A platform for multimedia educational activities"
    3.12 -MAINTAINER="claudinei@slitaz.org"
    3.13 +MAINTAINER="al.bobylev@gmail.com"
    3.14  LICENSE="GPL2"
    3.15 +WEB_SITE="https://github.com/projectestac/jclic"
    3.16 +# https://clic.xtec.cat/legacy/en/index.html
    3.17 +HOST_ARCH="any"
    3.18 +
    3.19  TARBALL="$PACKAGE-$VERSION.zip"
    3.20 -WEB_SITE="https://clic.xtec.cat/legacy/en/index.html"
    3.21 -WGET_URL="http://clic.xtec.cat/dist/jclic/$TARBALL"
    3.22 -TAGS="java multimedia education"
    3.23 +WGET_URL="https://github.com/projectestac/jclic/releases/download/v$VERSION/$TARBALL"
    3.24  
    3.25 -DEPENDS="java-jre"
    3.26 +BUILD_DEPENDS="advancecomp"
    3.27  
    3.28 -# Rules to configure and make the package.
    3.29 -compile_rules()
    3.30 -{
    3.31 -	cd $src
    3.32 -	rm -rf icons
    3.33 +compile_rules() {
    3.34 +	# icons
    3.35 +	mkdir -p \
    3.36 +		$install/usr/share/icons/hicolor/48x48/apps/ \
    3.37 +		$install/usr/share/icons/hicolor/scalable/apps/
    3.38 +	cp icons/author.png icons/jclic.png icons/reports.png \
    3.39 +		$install/usr/share/icons/hicolor/48x48/apps/
    3.40 +	cp icons/author.svg icons/jclic.svg icons/reports.svg \
    3.41 +		$install/usr/share/icons/hicolor/scalable/apps/
    3.42 +
    3.43 +	# menus
    3.44 +	mkdir -p $install/usr/share/applications/
    3.45 +	cp $stuff/*.desktop $install/usr/share/applications/
    3.46 +
    3.47 +	# java applets
    3.48 +	mkdir -p $install/usr/lib/jclic/
    3.49 +	cp *.jar *.js $install/usr/lib/jclic/
    3.50 +
    3.51 +	# docs
    3.52 +	cook_pick_docs *.md *.txt
    3.53 +
    3.54 +	title "Recompressing jars"
    3.55 +	advzip -zk3 $install/usr/lib/jclic/*.jar
    3.56  }
    3.57  
    3.58 -# Rules to gen a SliTaz package suitable for Tazpkg.
    3.59 -genpkg_rules()
    3.60 -{
    3.61 -	mkdir -p $fs/usr/lib/jclic $fs/usr/share/pixmaps $fs/usr/share/applications
    3.62 -	cp -a $src/* $fs/usr/lib/jclic
    3.63 -	cp $stuff/jclicauthor.desktop $fs/usr/share/applications
    3.64 -	cp $stuff/jclicreports.desktop $fs/usr/share/applications
    3.65 -	cp $stuff/author.png $fs/usr/share/pixmaps
    3.66 -	cp $stuff/reports.png $fs/usr/share/pixmaps
    3.67 +genpkg_rules() {
    3.68 +	copy @std
    3.69 +	DEPENDS="java-jre"
    3.70 +	TAGS="java multimedia education"
    3.71  }
    3.72 -
     4.1 Binary file jclic/stuff/author.png has changed
     5.1 --- a/jclic/stuff/jclic.desktop	Thu Oct 04 20:01:13 2018 +0300
     5.2 +++ b/jclic/stuff/jclic.desktop	Fri Oct 05 02:48:48 2018 +0300
     5.3 @@ -1,8 +1,6 @@
     5.4  [Desktop Entry]
     5.5  Type=Application
     5.6 -Encoding=UTF-8
     5.7  Name=JClic
     5.8  Exec=java -jar /usr/lib/jclic/jclic.jar
     5.9  Icon=jclic
    5.10 -Terminal=false
    5.11 -Categories=Application;Game;
    5.12 +Categories=Education;
     6.1 Binary file jclic/stuff/jclic.png has changed
     7.1 --- a/jclic/stuff/jclicauthor.desktop	Thu Oct 04 20:01:13 2018 +0300
     7.2 +++ b/jclic/stuff/jclicauthor.desktop	Fri Oct 05 02:48:48 2018 +0300
     7.3 @@ -1,8 +1,6 @@
     7.4  [Desktop Entry]
     7.5  Type=Application
     7.6 -Encoding=UTF-8
     7.7  Name=JClic Author
     7.8 -Exec=java -jar /usr/lib/jclic/jclicauthor.jar
     7.9 +Exec=java -Xmx256m -jar /usr/lib/jclic/jclicauthor.jar
    7.10  Icon=author
    7.11 -Terminal=false
    7.12 -Categories=Application;Game;
    7.13 +Categories=Education;
     8.1 --- a/jclic/stuff/jclicreports.desktop	Thu Oct 04 20:01:13 2018 +0300
     8.2 +++ b/jclic/stuff/jclicreports.desktop	Fri Oct 05 02:48:48 2018 +0300
     8.3 @@ -1,8 +1,6 @@
     8.4  [Desktop Entry]
     8.5  Type=Application
     8.6 -Encoding=UTF-8
     8.7  Name=JClic Reports
     8.8  Exec=java -jar /usr/lib/jclic/jclicreports.jar
     8.9  Icon=reports
    8.10 -Terminal=false
    8.11 -Categories=Application;Game;
    8.12 +Categories=Education;
     9.1 Binary file jclic/stuff/reports.png has changed