# HG changeset patch # User Pascal Bellard # Date 1643131456 0 # Node ID 7cfc423aaa00945be9ea2b3db672bef30e8e1375 # Parent a273d5a1ae507063918d83bc51ee9f7aa823cb7f Add xsuspend diff -r a273d5a1ae50 -r 7cfc423aaa00 asterisk-googletranslate/receipt --- a/asterisk-googletranslate/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/asterisk-googletranslate/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="asterisk perl-libwww perl-libjson perl-io-socket-ssl" BUILD_DEPENDS="wget" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/zaf/asterisk-googletranslate/tags 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { diff -r a273d5a1ae50 -r 7cfc423aaa00 asterisk-googletts/receipt --- a/asterisk-googletts/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/asterisk-googletts/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -13,6 +13,13 @@ DEPENDS="asterisk perl sox mpg123" BUILD_DEPENDS="wget" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/zaf/asterisk-googletts/tags 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { diff -r a273d5a1ae50 -r 7cfc423aaa00 asterisk/receipt --- a/asterisk/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/asterisk/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -27,6 +27,13 @@ jack-audio-connection-kit-dev radiusclient-ng-dev radiusclient-ng \ libvorbis-dev speex-dev opus-dev codec2-dev autoconf automake libtool" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/Available/!d;s|.*Asterisk ||;s| .*||;q' +} + # Rules to configure and make the package. # # Graphical configuration: 'make menuconfig' or 'make gmenuconfig' diff -r a273d5a1ae50 -r 7cfc423aaa00 lynis/receipt --- a/lynis/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/lynis/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -15,6 +15,13 @@ DEPENDS="" BUILD_DEPENDS="" +# What is the latest version available today? +current_version() +{ + wget -O - https://github.com/CISOfy/lynis/releases 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { diff -r a273d5a1ae50 -r 7cfc423aaa00 lyx/receipt --- a/lyx/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/lyx/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -15,6 +15,13 @@ BUILD_DEPENDS="aiksaurus-dev aspell-dev bison gcc83 python Qt4-dev xorg-libX11-dev" +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed '/released\./!d;s|.*LyX ||;s| rel.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r a273d5a1ae50 -r 7cfc423aaa00 vlgothic-fonts/receipt --- a/vlgothic-fonts/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/vlgothic-fonts/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -12,6 +12,14 @@ TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="https://osdn.net/projects/vlgothic/downloads/$RELEASE/VLGothic-$VERSION.tar.xz" +# What is the latest version available today? +current_version() +{ + wget -O - https://osdn.net/projects/vlgothic/downloads/ 2>/dev/null | \ + sed '/Linux/!d;s|.*VLGothic-||;s|.tar.*||;q' +} + +# Busybox patches # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { diff -r a273d5a1ae50 -r 7cfc423aaa00 wqy-bitmapfont/receipt --- a/wqy-bitmapfont/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/wqy-bitmapfont/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -11,6 +11,15 @@ WGET_URL="$SF_MIRROR/wqy/$PACKAGE/$VERSION/$TARBALL" TAGS="font" +# What is the latest version available today? +current_version() +{ + wget -O - https://sourceforge.net/projects/wqy/files/ 2>/dev/null | \ + sed '/scope="row/!d;/wqy-bitmapfont\//!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ + sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",|/|;q' | xargs wget -O - 2>/dev/null | \ + sed '/tar/!d;/-pcf-/!d;s|.*pcf-||;s|.tar.*||;q' +} + genpkg_rules() { FONT=/usr/share/fonts/wenquanyi/wqy-bitmapfont diff -r a273d5a1ae50 -r 7cfc423aaa00 wqy-microhei/receipt --- a/wqy-microhei/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/wqy-microhei/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -12,6 +12,15 @@ DEPENDS="" +# What is the latest version available today? +current_version() +{ + wget -O - https://sourceforge.net/projects/wqy/files/ 2>/dev/null | \ + sed '/scope="row/!d;/wqy-microhei\//!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ + sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",|/|;q' | xargs wget -O - 2>/dev/null | \ + sed '/tar/!d;/wqy-microhei/!d;s|.*wqy-microhei-||;s|.tar.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r a273d5a1ae50 -r 7cfc423aaa00 wxHexEditor/receipt --- a/wxHexEditor/receipt Tue Jan 25 14:40:52 2022 +0100 +++ b/wxHexEditor/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -15,6 +15,15 @@ DEPENDS="libgomp wxWidgets" BUILD_DEPENDS="autoconf automake libffi libtool wxWidgets-dev" +# What is the latest version available today? +current_version() +{ + wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \ + sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ + sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",||;q' | xargs wget -O - 2>/dev/null | \ + sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q' +} + # Rules to configure and make the package. compile_rules() { diff -r a273d5a1ae50 -r 7cfc423aaa00 xsuspend/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xsuspend/receipt Tue Jan 25 17:24:16 2022 +0000 @@ -0,0 +1,41 @@ +# SliTaz package receipt. + +PACKAGE="xsuspend" +VERSION="1.3" +CATEGORY="x-window" +SHORT_DESC="Auto-suspend inactive X11 applications" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://kernc.github.io/xsuspender/" + +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="https://github.com/kernc/xsuspender/archive/refs/tags/$VERSION.tar.gz" + +DEPENDS="libwnck3 glib" +BUILD_DEPENDS="libwnck3-dev glib-dev cmake pkg-config" + +# What is the latest version available today? +current_version() +{ + wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ + sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' +} + +# Rules to configure and make the package. +compile_rules() +{ + sed 's|if GLIB_MINOR_VERSION.*|if 0|' -i src/config.c + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr .. && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + + cp -a $install/etc $fs/ + cp -a $install/usr/bin $fs/usr +}