wok-current diff redupe/receipt @ rev 24139

Add redupe
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 09 17:05:26 2021 +0000 (2021-11-09)
parents
children c7f8c2901186
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/redupe/receipt	Tue Nov 09 17:05:26 2021 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="redupe"
     1.7 +VERSION="0.1.0"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Forward error correction."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="BSD"
    1.12 +WEB_SITE="https://hack.systems/2018/05/16/redupe/"
    1.13 +
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WGET_URL="https://github.com/rescrv/redupe/archive/refs/tags/v$VERSION.tar.gz"
    1.16 +
    1.17 +DEPENDS="popt"
    1.18 +BUILD_DEPENDS="automake gcc83 popt-dev"
    1.19 +
    1.20 +current_version()
    1.21 +{
    1.22 +	wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    1.23 +	sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
    1.24 +}
    1.25 +
    1.26 +# Rules to configure and make the package.
    1.27 +compile_rules()
    1.28 +{
    1.29 +	autoreconf -ivf
    1.30 +	./configure			\
    1.31 +		CC=gcc-83		\
    1.32 +		CXX=g++-83		\
    1.33 +		--prefix=/usr		\
    1.34 +		--mandir=/usr/share/man	\
    1.35 +		$CONFIGURE_ARGS &&
    1.36 +	make &&
    1.37 +	make DESTDIR=$DESTDIR install
    1.38 +}
    1.39 +
    1.40 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.41 +genpkg_rules()
    1.42 +{
    1.43 +	cp -a $install/usr	$fs/
    1.44 +}