wok rev 25780
Add apultra & lzav
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 23 14:15:08 2024 +0000 (8 weeks ago) |
parents | ce42665e06ae |
children | 0d41479b7e7f |
files | apcupsd/receipt apultra/receipt dvdauthor/receipt logsurfer/receipt lzav-dev/receipt lzav-dev/stuff/lzav.c openobex/receipt paulstretch/receipt |
line diff
1.1 --- a/apcupsd/receipt Fri Sep 20 09:24:30 2024 +0000 1.2 +++ b/apcupsd/receipt Mon Sep 23 14:15:08 2024 +0000 1.3 @@ -9,7 +9,7 @@ 1.4 WEB_SITE="http://www.apcupsd.org/" 1.5 1.6 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.7 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.8 +WGET_URL="$SF_MIRROR/sourceforge/$PACKAGE/$TARBALL" 1.9 1.10 BUILD_DEPENDS="libgd libgd-dev slitaz-dev-pkgs" 1.11
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/apultra/receipt Mon Sep 23 14:15:08 2024 +0000 2.3 @@ -0,0 +1,37 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="apultra" 2.7 +VERSION="1.4.8" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="Free open-source compressor for apLib with 5-7% better ratios." 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +LICENSE="zlib/libpng cc" 2.12 +WEB_SITE="https://github.com/emmanuel-marty/apultra" 2.13 + 2.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.15 +WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" 2.16 + 2.17 +# What is the latest version available today? 2.18 +current_version() 2.19 +{ 2.20 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 2.21 + sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' 2.22 +} 2.23 + 2.24 +# Rules to configure and make the package. 2.25 +compile_rules() 2.26 +{ 2.27 + sed -i 's|^CC=.*$|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' \ 2.28 + Makefile 2.29 + make 2.30 +} 2.31 + 2.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.33 +genpkg_rules() 2.34 +{ 2.35 + mkdir -p $fs/usr/bin 2.36 + mkdir -p $install/usr/share/doc 2.37 + 2.38 + cp -a $src/apultra $fs/usr/bin 2.39 + cp $src/README* $install/usr/share/doc 2.40 +}
3.1 --- a/dvdauthor/receipt Fri Sep 20 09:24:30 2024 +0000 3.2 +++ b/dvdauthor/receipt Mon Sep 23 14:15:08 2024 +0000 3.3 @@ -9,7 +9,7 @@ 3.4 WEB_SITE="https://sourceforge.net/projects/dvdauthor/" 3.5 3.6 TARBALL="$PACKAGE-$VERSION.tar.gz" 3.7 -WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 3.8 +WGET_URL="$SF_MIRROR/sourceforge/$PACKAGE/$TARBALL" 3.9 3.10 DEPENDS="libpng tiff jpeg libxml2 fribidi libdvdread" 3.11 BUILD_DEPENDS="libpng-dev tiff-dev jpeg-dev libxml2-dev libdvdread-dev"
4.1 --- a/logsurfer/receipt Fri Sep 20 09:24:30 2024 +0000 4.2 +++ b/logsurfer/receipt Mon Sep 23 14:15:08 2024 +0000 4.3 @@ -7,13 +7,13 @@ 4.4 MAINTAINER="pascal.bellard@slitaz.org" 4.5 LICENSE="GPL" 4.6 TARBALL="$PACKAGE-$VERSION.tar.gz" 4.7 -WEB_SITE="https://www.crypt.gen.nz/logsurfer/" 4.8 +WEB_SITE="https://logsurfer.sourceforge.net/" 4.9 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 4.10 4.11 # What is the latest version available today? 4.12 current_version() 4.13 { 4.14 - wget -O - $WEB_SITE 2>/dev/null | \ 4.15 + wget -O - https://www.crypt.gen.nz/logsurfer/ 2>/dev/null | \ 4.16 sed '/Logsurfer .* Features/!d;/div/d;s|.*Logsurfer ||;s| Features.*||;q' 4.17 } 4.18
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/lzav-dev/receipt Mon Sep 23 14:15:08 2024 +0000 5.3 @@ -0,0 +1,36 @@ 5.4 +# SliTaz package receipt. 5.5 + 5.6 +PACKAGE="lzav-dev" 5.7 +VERSION="4.0" 5.8 +CATEGORY="base-system" 5.9 +TAGS="compression" 5.10 +SHORT_DESC="Fast In-Memory Data Compression Algorithm." 5.11 +MAINTAINER="pascal.bellard@slitaz.org" 5.12 +LICENSE="MIT" 5.13 +WEB_SITE="https://github.com/avaneev/lzav" 5.14 + 5.15 +TARBALL="$PACKAGE-$VERSION.tar.gz" 5.16 +WGET_URL="https://github.com/avaneev/lzav/archive/refs/tags/$VERSION.tar.gz" 5.17 + 5.18 +# What is the latest version available today? 5.19 +current_version() 5.20 +{ 5.21 + wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ 5.22 + sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' 5.23 +} 5.24 + 5.25 +# Rules to configure and make the package. 5.26 +compile_rules() 5.27 +{ 5.28 + cp $stuff/lzav.c . 5.29 + make lzav 5.30 +} 5.31 + 5.32 +# Rules to gen a SliTaz package suitable for Tazpkg. 5.33 +genpkg_rules() 5.34 +{ 5.35 + mkdir -p $fs/usr/include $fs/usr/bin 5.36 + 5.37 + cp -a $src/lzav.h $fs/usr/include 5.38 + cp -a $src/lzav $fs/usr/bin 5.39 +}
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/lzav-dev/stuff/lzav.c Mon Sep 23 14:15:08 2024 +0000 6.3 @@ -0,0 +1,109 @@ 6.4 +#include "lzav.h" 6.5 +#include <stdio.h> 6.6 +#include <stdlib.h> 6.7 +#include <unistd.h> 6.8 + 6.9 +#define BLKSZ 0x10000 6.10 +#define COMPRESS 0 6.11 +#define HICOMPRESS 1 6.12 +#define DECOMPRESS 2 6.13 + 6.14 +static int src_len, dst_len; 6.15 +static char *src_buf, *dst_buf; 6.16 + 6.17 +static void fail(int code) 6.18 +{ 6.19 + fprintf(stderr,"Error %d \n",code); 6.20 + if (src_buf) free(src_buf); 6.21 + if (dst_buf) free(dst_buf); 6.22 + exit(code); 6.23 +} 6.24 + 6.25 +void inline load(void) 6.26 +{ 6.27 + int n, max = BLKSZ; 6.28 + 6.29 + src_len = 0; 6.30 + src_buf = malloc(max); 6.31 + while (src_buf != NULL) { 6.32 + n = read(0, src_buf + src_len, max - src_len); 6.33 + if (n <= 0) break; 6.34 + src_len += n; 6.35 + if (src_len == max) { 6.36 + max += BLKSZ; 6.37 + src_buf = realloc(src_buf, max); 6.38 + } 6.39 + } 6.40 + if (src_buf == NULL) fail(1); 6.41 + if (n < 0) fail(2); 6.42 +} 6.43 + 6.44 +inline void store(void) 6.45 +{ 6.46 + int n, i; 6.47 + for (n = 0; n < dst_len; n += i) { 6.48 + i = write(1, dst_buf + n, dst_len - n); 6.49 + if (i < 0) fail(4); 6.50 + } 6.51 +} 6.52 + 6.53 +static void header(void) 6.54 +{ 6.55 + int len = src_len; 6.56 + LZAV_IEC32( len ); 6.57 + write(1,"LZAV",4); 6.58 + write(1,&len,4); 6.59 +} 6.60 + 6.61 +int main(int argc, char *argv[]) 6.62 +{ 6.63 + int mode = COMPRESS; 6.64 + int i, j, max_len; 6.65 + for (i = 1; i < argc; i++) { 6.66 + char c; 6.67 + for (j = 0; argv[i][j] == '-'; j++); 6.68 + switch (argv[i][j]) { 6.69 + case 'd': 6.70 + mode = DECOMPRESS; 6.71 + break; 6.72 + case 'e': 6.73 + mode = COMPRESS; 6.74 + break; 6.75 + case 'h': 6.76 + case 'x': 6.77 + mode = HICOMPRESS; 6.78 + break; 6.79 + default: 6.80 + fprintf(stderr,"Usage: %s [-d|-c|-x] < input > output\nDecompress, compress or hi-compress",argv[0]); 6.81 + } 6.82 + } 6.83 + load(); 6.84 + switch (mode) { 6.85 + case DECOMPRESS : 6.86 + dst_len = *(int *)(src_buf+4); 6.87 + LZAV_IEC32(dst_len); 6.88 + src_buf += 8; src_len -= 8; 6.89 + dst_buf = malloc( dst_len ); 6.90 + if (dst_buf == NULL) fail(3); 6.91 + dst_len = lzav_decompress( src_buf, dst_buf, src_len, dst_len ); 6.92 + if( dst_len < 0 ) fail(5); 6.93 + break; 6.94 + case COMPRESS : 6.95 + max_len = lzav_compress_bound( src_len ); 6.96 + dst_buf = malloc( max_len ); 6.97 + if (dst_buf == NULL) fail(3); 6.98 + dst_len = lzav_compress_default( src_buf, dst_buf, src_len, max_len ); 6.99 + if( dst_len == 0 && src_len != 0 ) fail(5); 6.100 + header(); 6.101 + break; 6.102 + case HICOMPRESS : 6.103 + max_len = lzav_compress_bound_hi( src_len ); 6.104 + dst_buf = malloc( max_len ); 6.105 + if (dst_buf == NULL) fail(3); 6.106 + dst_len = lzav_compress_hi( src_buf, dst_buf, src_len, max_len ); 6.107 + if( dst_len == 0 && src_len != 0 ) fail(5); 6.108 + header(); 6.109 + break; 6.110 + } 6.111 + store(); 6.112 +}
7.1 --- a/openobex/receipt Fri Sep 20 09:24:30 2024 +0000 7.2 +++ b/openobex/receipt Mon Sep 23 14:15:08 2024 +0000 7.3 @@ -10,7 +10,7 @@ 7.4 WEB_SITE="https://gitlab.com/openobex/mainline" 7.5 7.6 TARBALL="$PACKAGE-$VERSION-Source.tar.gz" 7.7 -WGET_URL="$SF_MIRROR/$PACKAGE/$VERSION/$TARBALL" 7.8 +WGET_URL="$SF_MIRROR/sourceforge/$PACKAGE/$TARBALL" 7.9 7.10 DEPENDS="bluez libusb" 7.11 BUILD_DEPENDS="bluez-dev cmake libusb-dev"
8.1 --- a/paulstretch/receipt Fri Sep 20 09:24:30 2024 +0000 8.2 +++ b/paulstretch/receipt Mon Sep 23 14:15:08 2024 +0000 8.3 @@ -7,7 +7,7 @@ 8.4 MAINTAINER="pascal.bellard@slitaz.org" 8.5 TARBALL="$PACKAGE-$VERSION.tar.bz2" 8.6 LICENSE="GPL2" 8.7 -WEB_SITE="https://hypermammut.sourceforge.net/paulstretch/" 8.8 +WEB_SITE="https://github.com/paulnasca/paulstretch_cpp" 8.9 WGET_URL="$SF_MIRROR/hypermammut/$TARBALL" 8.10 8.11 DEPENDS="fltk libvorbis audiofile portaudio libmad fftw mxml"