wok view codec2/receipt @ rev 25609

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 20 14:03:05 2023 +0000 (10 months ago)
parents fe1b5660fdd1
children b6605c2b3156
line source
1 # SliTaz package receipt.
3 PACKAGE="codec2"
4 VERSION="1.0.5"
5 CATEGORY="multimedia"
6 SHORT_DESC="An open source low bit rate speech codec"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/drowe67/codec2"
11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
13 BUILD_DEPENDS="cmake"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}-dev/releases 2>/dev/null | \
19 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i 's| -no-pie||' unittest/CMakeLists.txt
26 mkdir -p $DESTDIR/usr/share/doc
27 cp README* COPYING $DESTDIR/usr/share/doc
28 mkdir build_linux
29 cd build_linux
30 cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib $fs/usr/bin
38 cp -a $src/build_linux/src/c2* $fs/usr/bin
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }