wok annotate fast-lzma2/receipt @ rev 25062
Up foomatic-db-nonfree (20210824)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 07 10:29:31 2022 +0000 (2022-06-07) |
parents | |
children | 20ad21d5532c |
rev | line source |
---|---|
pascal@24807 | 1 # SliTaz package receipt. |
pascal@24807 | 2 |
pascal@24807 | 3 PACKAGE="fast-lzma2" |
pascal@24807 | 4 VERSION="1.0.1" |
pascal@24807 | 5 CATEGORY="base-system" |
pascal@24807 | 6 SHORT_DESC="Fast LZMA2 Library." |
pascal@24807 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@24807 | 8 LICENSE="BSD GPL2" |
pascal@24807 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24807 | 10 WEB_SITE="https://github.com/conor42/fast-lzma2" |
pascal@24807 | 11 WGET_URL="https://github.com/conor42/fast-lzma2/archive/refs/tags/v$VERSION.tar.gz" |
pascal@24807 | 12 |
pascal@24807 | 13 BUILD_DEPENDS="gcc83" |
pascal@24807 | 14 |
pascal@24807 | 15 # What is the latest version available today? |
pascal@24807 | 16 current_version() |
pascal@24807 | 17 { |
pascal@24807 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24807 | 19 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24807 | 20 } |
pascal@24807 | 21 |
pascal@24807 | 22 # Rules to configure and make the package. |
pascal@24807 | 23 compile_rules() |
pascal@24807 | 24 { |
pascal@24807 | 25 find -name Makefile | xargs sed -i 's|uname -m|echo i686|;s|/local||' |
pascal@24807 | 26 make CC=gcc-83 PREFIX=/usr && |
pascal@24807 | 27 make DESTDIR=$DESTDIR install |
pascal@24807 | 28 } |
pascal@24807 | 29 |
pascal@24807 | 30 |
pascal@24807 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24807 | 32 genpkg_rules() |
pascal@24807 | 33 { |
pascal@24807 | 34 mkdir -p $fs/usr |
pascal@24807 | 35 cp -a $install/usr/lib $fs/usr |
pascal@24807 | 36 } |