wok rev 24673

Add libavif
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Mar 11 17:20:09 2022 +0000 (2022-03-11)
parents 5c32fbe35985
children 4abfb8bc5dd3
files cortex/receipt double-conversion/receipt ipxe/receipt kilo/receipt libavif-dev/receipt libavif/receipt libdbi/receipt
line diff
     1.1 --- a/cortex/receipt	Fri Mar 11 17:39:07 2022 +0100
     1.2 +++ b/cortex/receipt	Fri Mar 11 17:20:09 2022 +0000
     1.3 @@ -17,7 +17,7 @@
     1.4  current_version()
     1.5  {
     1.6  	wget -O - https://github.com/GGLucas/cortex/commits/master 2>/dev/null | \
     1.7 -	sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
     1.8 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
     1.9  }
    1.10  
    1.11  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.1 --- a/double-conversion/receipt	Fri Mar 11 17:39:07 2022 +0100
     2.2 +++ b/double-conversion/receipt	Fri Mar 11 17:20:09 2022 +0000
     2.3 @@ -16,6 +16,13 @@
     2.4  
     2.5  BUILD_DEPENDS="cmake"
     2.6  
     2.7 +# What is the latest version available today?
     2.8 +current_version()
     2.9 +{
    2.10 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    2.11 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    2.12 +}
    2.13 +
    2.14  # Rules to configure and make the package.
    2.15  compile_rules()
    2.16  {
     3.1 --- a/ipxe/receipt	Fri Mar 11 17:39:07 2022 +0100
     3.2 +++ b/ipxe/receipt	Fri Mar 11 17:20:09 2022 +0000
     3.3 @@ -42,7 +42,8 @@
     3.4  	pxelinux="$(ls $WOK/syslinux/source/*/core/pxelinux.0)"
     3.5  	make bin-i386-efi/snponly.efi EMBED=$stuff/ipxelinux.ipxe,$pxelinux &&
     3.6  		mv bin-i386-efi/snponly.efi bin-i386-efi/ipxelinux.efi
     3.7 -	make bin-i386-efi/ipxe.efi bin-i386-efi/snponly.efi EMBED=$stuff/ipxe.cmd
     3.8 +	make bin-i386-efi/ipxe.efi bin-i386-efi/ipxe.efidrv bin-i386-efi/snponly.efi \
     3.9 +		EMBED=$stuff/ipxe.cmd
    3.10  
    3.11  	sed -i 's|//\(#define.*MEMMAP_SETTINGS\)|\1|' config/settings.h
    3.12  	make bin/undionly.kkkpxe EMBED=$stuff/ipxelinux.ipxe,$pxelinux &&
     4.1 --- a/kilo/receipt	Fri Mar 11 17:39:07 2022 +0100
     4.2 +++ b/kilo/receipt	Fri Mar 11 17:20:09 2022 +0000
     4.3 @@ -17,7 +17,7 @@
     4.4  current_version()
     4.5  {
     4.6  	wget -O - https://github.com/antirez/kilo/commits/master 2>/dev/null | \
     4.7 -	sed '/commits_list_item/!d;s|.*commits/\(.......\).*|\1|;q'
     4.8 +	sed '/Commits on/!d;s|.*on |"|;s|<.*|"|;q' | xargs date +%Y%m%d -d
     4.9  }
    4.10  
    4.11  # Rules to configure and make the package.
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/libavif-dev/receipt	Fri Mar 11 17:20:09 2022 +0000
     5.3 @@ -0,0 +1,21 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="libavif-dev"
     5.7 +VERSION="0.9.0"
     5.8 +CATEGORY="development"
     5.9 +SHORT_DESC="Library for encoding and decoding .avif files, development files"
    5.10 +MAINTAINER="pascal.bellard@slitaz.org"
    5.11 +LICENSE="MIT Apache"
    5.12 +WEB_SITE="https://github.com/AOMediaCodec/libavif"
    5.13 +WANTED="libavif"
    5.14 +
    5.15 +DEPENDS="libavif pkg-config"
    5.16 +
    5.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.18 +genpkg_rules()
    5.19 +{
    5.20 +	mkdir -p $fs/usr/lib
    5.21 +	cp -a $install/usr/include		$fs/usr
    5.22 +	cp -a $install/usr/lib/cmake		$fs/usr/lib
    5.23 +	cp -a $install/usr/lib/pkgconfig	$fs/usr/lib
    5.24 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/libavif/receipt	Fri Mar 11 17:20:09 2022 +0000
     6.3 @@ -0,0 +1,36 @@
     6.4 +# SliTaz package receipt.
     6.5 +
     6.6 +PACKAGE="libavif"
     6.7 +VERSION="0.9.0"
     6.8 +CATEGORY="multimedia"
     6.9 +SHORT_DESC="Library for encoding and decoding .avif files"
    6.10 +MAINTAINER="pascal.bellard@slitaz.org"
    6.11 +LICENSE="MIT Apache"
    6.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    6.13 +WEB_SITE="https://github.com/AOMediaCodec/libavif"
    6.14 +WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    6.15 +
    6.16 +BUILD_DEPENDS="cmake"
    6.17 +
    6.18 +# What is the latest version available today?
    6.19 +current_version()
    6.20 +{
    6.21 +	wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
    6.22 +	sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
    6.23 +}
    6.24 +
    6.25 +# Rules to configure and make the package.
    6.26 +compile_rules()
    6.27 +{
    6.28 +	mkdir build_linux
    6.29 +	cd build_linux
    6.30 +	cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
    6.31 +	make DESTDIR=$DESTDIR install
    6.32 +}
    6.33 +
    6.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    6.35 +genpkg_rules()
    6.36 +{
    6.37 +	mkdir -p $fs/usr/lib
    6.38 +	cp -a $install/usr/lib/lib*.so* $fs/usr/lib
    6.39 +}
     7.1 --- a/libdbi/receipt	Fri Mar 11 17:39:07 2022 +0100
     7.2 +++ b/libdbi/receipt	Fri Mar 11 17:20:09 2022 +0000
     7.3 @@ -12,6 +12,13 @@
     7.4  WGET_URL="https://downloads.sourceforge.net/project/$PACKAGE/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"
     7.5  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     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/libdbi/files/libdbi/ 2>/dev/null | \
    7.11 +	sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    7.12 +	sed '/scope="row/!d;s|.*/libdbi-||;s|/.*||;q'
    7.13 +}
    7.14  
    7.15  # Rules to configure and make the package.
    7.16  compile_rules()