wok-6.x rev 24319

Add xsuspend
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jan 25 17:24:16 2022 +0000 (2022-01-25)
parents a273d5a1ae50
children 30a8f0bbbbe3
files asterisk-googletranslate/receipt asterisk-googletts/receipt asterisk/receipt lynis/receipt lyx/receipt vlgothic-fonts/receipt wqy-bitmapfont/receipt wqy-microhei/receipt wxHexEditor/receipt xsuspend/receipt
line diff
     1.1 --- a/asterisk-googletranslate/receipt	Tue Jan 25 14:40:52 2022 +0100
     1.2 +++ b/asterisk-googletranslate/receipt	Tue Jan 25 17:24:16 2022 +0000
     1.3 @@ -13,6 +13,13 @@
     1.4  DEPENDS="asterisk perl-libwww perl-libjson perl-io-socket-ssl"
     1.5  BUILD_DEPENDS="wget"
     1.6  
     1.7 +# What is the latest version available today?
     1.8 +current_version()
     1.9 +{
    1.10 +	wget -O - https://github.com/zaf/asterisk-googletranslate/tags 2>/dev/null | \
    1.11 +	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
    1.12 +}
    1.13 +
    1.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.15  genpkg_rules()
    1.16  {
     2.1 --- a/asterisk-googletts/receipt	Tue Jan 25 14:40:52 2022 +0100
     2.2 +++ b/asterisk-googletts/receipt	Tue Jan 25 17:24:16 2022 +0000
     2.3 @@ -13,6 +13,13 @@
     2.4  DEPENDS="asterisk perl sox mpg123"
     2.5  BUILD_DEPENDS="wget"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - https://github.com/zaf/asterisk-googletts/tags 2>/dev/null | \
    2.11 +	sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
    2.12 +}
    2.13 +
    2.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.15  genpkg_rules()
    2.16  {
     3.1 --- a/asterisk/receipt	Tue Jan 25 14:40:52 2022 +0100
     3.2 +++ b/asterisk/receipt	Tue Jan 25 17:24:16 2022 +0000
     3.3 @@ -27,6 +27,13 @@
     3.4  jack-audio-connection-kit-dev radiusclient-ng-dev radiusclient-ng \
     3.5  libvorbis-dev speex-dev opus-dev codec2-dev autoconf automake libtool"
     3.6  
     3.7 +# What is the latest version available today?
     3.8 +current_version()
     3.9 +{
    3.10 +	wget -O - $WEB_SITE 2>/dev/null | \
    3.11 +	sed '/Available/!d;s|.*Asterisk ||;s| .*||;q'
    3.12 +}
    3.13 +
    3.14  # Rules to configure and make the package.
    3.15  #
    3.16  # Graphical configuration: 'make menuconfig' or 'make gmenuconfig'
     4.1 --- a/lynis/receipt	Tue Jan 25 14:40:52 2022 +0100
     4.2 +++ b/lynis/receipt	Tue Jan 25 17:24:16 2022 +0000
     4.3 @@ -15,6 +15,13 @@
     4.4  DEPENDS=""
     4.5  BUILD_DEPENDS=""
     4.6  
     4.7 +# What is the latest version available today?
     4.8 +current_version()
     4.9 +{
    4.10 +	wget -O - https://github.com/CISOfy/lynis/releases 2>/dev/null | \
    4.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    4.12 +}
    4.13 +
    4.14  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.15  genpkg_rules()
    4.16  {
     5.1 --- a/lyx/receipt	Tue Jan 25 14:40:52 2022 +0100
     5.2 +++ b/lyx/receipt	Tue Jan 25 17:24:16 2022 +0000
     5.3 @@ -15,6 +15,13 @@
     5.4  BUILD_DEPENDS="aiksaurus-dev aspell-dev bison gcc83 python Qt4-dev 
     5.5  	xorg-libX11-dev"
     5.6  
     5.7 +# What is the latest version available today?
     5.8 +current_version()
     5.9 +{
    5.10 +	wget -O - $WEB_SITE 2>/dev/null | \
    5.11 +	sed '/released\./!d;s|.*LyX ||;s| rel.*||;q'
    5.12 +}
    5.13 +
    5.14  # Rules to configure and make the package.
    5.15  compile_rules()
    5.16  {
     6.1 --- a/vlgothic-fonts/receipt	Tue Jan 25 14:40:52 2022 +0100
     6.2 +++ b/vlgothic-fonts/receipt	Tue Jan 25 17:24:16 2022 +0000
     6.3 @@ -12,6 +12,14 @@
     6.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     6.5  WGET_URL="https://osdn.net/projects/vlgothic/downloads/$RELEASE/VLGothic-$VERSION.tar.xz"
     6.6  
     6.7 +# What is the latest version available today?
     6.8 +current_version()
     6.9 +{
    6.10 +	wget -O - https://osdn.net/projects/vlgothic/downloads/ 2>/dev/null | \
    6.11 +	sed '/Linux/!d;s|.*VLGothic-||;s|.tar.*||;q'
    6.12 +}
    6.13 +
    6.14 +# Busybox patches
    6.15  # Rules to gen a SliTaz package suitable for Tazpkg.
    6.16  genpkg_rules()
    6.17  {
     7.1 --- a/wqy-bitmapfont/receipt	Tue Jan 25 14:40:52 2022 +0100
     7.2 +++ b/wqy-bitmapfont/receipt	Tue Jan 25 17:24:16 2022 +0000
     7.3 @@ -11,6 +11,15 @@
     7.4  WGET_URL="$SF_MIRROR/wqy/$PACKAGE/$VERSION/$TARBALL"
     7.5  TAGS="font"
     7.6  
     7.7 +# What is the latest version available today?
     7.8 +current_version()
     7.9 +{
    7.10 +	wget -O - https://sourceforge.net/projects/wqy/files/ 2>/dev/null | \
    7.11 +	sed '/scope="row/!d;/wqy-bitmapfont\//!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    7.12 +	sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",|/|;q' | xargs wget -O - 2>/dev/null | \
    7.13 +	sed '/tar/!d;/-pcf-/!d;s|.*pcf-||;s|.tar.*||;q'
    7.14 +}
    7.15 +
    7.16  genpkg_rules()
    7.17  {
    7.18  	FONT=/usr/share/fonts/wenquanyi/wqy-bitmapfont
     8.1 --- a/wqy-microhei/receipt	Tue Jan 25 14:40:52 2022 +0100
     8.2 +++ b/wqy-microhei/receipt	Tue Jan 25 17:24:16 2022 +0000
     8.3 @@ -12,6 +12,15 @@
     8.4  
     8.5  DEPENDS=""
     8.6  
     8.7 +# What is the latest version available today?
     8.8 +current_version()
     8.9 +{
    8.10 +	wget -O - https://sourceforge.net/projects/wqy/files/ 2>/dev/null | \
    8.11 +	sed '/scope="row/!d;/wqy-microhei\//!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    8.12 +	sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",|/|;q' | xargs wget -O - 2>/dev/null | \
    8.13 +	sed '/tar/!d;/wqy-microhei/!d;s|.*wqy-microhei-||;s|.tar.*||;q'
    8.14 +}
    8.15 +
    8.16  # Rules to configure and make the package.
    8.17  compile_rules()
    8.18  {
     9.1 --- a/wxHexEditor/receipt	Tue Jan 25 14:40:52 2022 +0100
     9.2 +++ b/wxHexEditor/receipt	Tue Jan 25 17:24:16 2022 +0000
     9.3 @@ -15,6 +15,15 @@
     9.4  DEPENDS="libgomp wxWidgets"
     9.5  BUILD_DEPENDS="autoconf automake libffi libtool wxWidgets-dev"
     9.6  
     9.7 +# What is the latest version available today?
     9.8 +current_version()
     9.9 +{
    9.10 +	wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    9.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    9.12 +	sed 's| |\n|g' | sed '/http/!d;/download/!d;s|^"||;s|/download",||;q' | xargs wget -O - 2>/dev/null | \
    9.13 +	sed '/src.tar..z/!d;s|.*wxHexEditor-v||;s|-src.*||;q'
    9.14 +}
    9.15 +
    9.16  # Rules to configure and make the package.
    9.17  compile_rules()
    9.18  {
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/xsuspend/receipt	Tue Jan 25 17:24:16 2022 +0000
    10.3 @@ -0,0 +1,41 @@
    10.4 +# SliTaz package receipt.
    10.5 +
    10.6 +PACKAGE="xsuspend"
    10.7 +VERSION="1.3"
    10.8 +CATEGORY="x-window"
    10.9 +SHORT_DESC="Auto-suspend inactive X11 applications"
   10.10 +MAINTAINER="pascal.bellard@slitaz.org"
   10.11 +LICENSE="MIT"
   10.12 +WEB_SITE="https://kernc.github.io/xsuspender/"
   10.13 +
   10.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
   10.15 +WGET_URL="https://github.com/kernc/xsuspender/archive/refs/tags/$VERSION.tar.gz"
   10.16 +
   10.17 +DEPENDS="libwnck3 glib"
   10.18 +BUILD_DEPENDS="libwnck3-dev glib-dev cmake pkg-config"
   10.19 +
   10.20 +# What is the latest version available today?
   10.21 +current_version()
   10.22 +{
   10.23 +	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
   10.24 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
   10.25 +}
   10.26 +
   10.27 +# Rules to configure and make the package.
   10.28 +compile_rules()
   10.29 +{
   10.30 +	sed 's|if GLIB_MINOR_VERSION.*|if 0|' -i src/config.c
   10.31 +	cd build
   10.32 +	cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
   10.33 +	make &&
   10.34 +	make DESTDIR=$DESTDIR install
   10.35 +}
   10.36 +
   10.37 +# Rules to gen a SliTaz package suitable for Tazpkg.
   10.38 +genpkg_rules()
   10.39 +{
   10.40 +	mkdir -p $fs/usr
   10.41 +
   10.42 +	cp -a $install/etc	$fs/
   10.43 +	cp -a $install/usr/bin	$fs/usr
   10.44 +}