wok-current view fast-lzma2/receipt @ rev 25177

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