wok-6.x annotate zultra/receipt @ rev 25527
created recipes for libmpack and libmpack-dev 1.0.5
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 25 07:28:19 2023 +0100 (19 months ago) |
parents | |
children |
rev | line source |
---|---|
pascal@25498 | 1 # SliTaz package receipt. |
pascal@25498 | 2 |
pascal@25498 | 3 PACKAGE="zultra" |
pascal@25498 | 4 VERSION="1.0.0" |
pascal@25498 | 5 CATEGORY="system-tools" |
pascal@25498 | 6 SHORT_DESC="Fast near-optimal deflate/zlib/gzip compression." |
pascal@25498 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@25498 | 8 LICENSE="zlib/libpng cc" |
pascal@25498 | 9 WEB_SITE="https://github.com/emmanuel-marty/zultra" |
pascal@25498 | 10 |
pascal@25498 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25498 | 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz" |
pascal@25498 | 13 |
pascal@25498 | 14 current_version() |
pascal@25498 | 15 { |
pascal@25498 | 16 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25498 | 17 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@25498 | 18 } |
pascal@25498 | 19 |
pascal@25498 | 20 # Rules to configure and make the package. |
pascal@25498 | 21 compile_rules() |
pascal@25498 | 22 { |
pascal@25498 | 23 sed -i 's|^CC=.*$|CC=gcc|;s|^CFLAGS=|&-std=gnu99 |' \ |
pascal@25498 | 24 Makefile |
pascal@25498 | 25 make |
pascal@25498 | 26 } |
pascal@25498 | 27 |
pascal@25498 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@25498 | 29 genpkg_rules() |
pascal@25498 | 30 { |
pascal@25498 | 31 mkdir -p $fs/usr/bin |
pascal@25498 | 32 mkdir -p $install/usr/share/doc |
pascal@25498 | 33 |
pascal@25498 | 34 cp -a $src/zultra $fs/usr/bin |
pascal@25498 | 35 cp $src/README* $install/usr/share/doc |
pascal@25498 | 36 } |