wok-current view 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 source
1 # SliTaz package receipt.
3 PACKAGE="redupe"
4 VERSION="0.1.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Forward error correction."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://hack.systems/2018/05/16/redupe/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/rescrv/redupe/archive/refs/tags/v$VERSION.tar.gz"
14 DEPENDS="popt"
15 BUILD_DEPENDS="automake gcc83 popt-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 autoreconf -ivf
27 ./configure \
28 CC=gcc-83 \
29 CXX=g++-83 \
30 --prefix=/usr \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs/
41 }