wok view codec2/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents 7e911016a644
children fa52c0a3f78a
line source
1 # SliTaz package receipt.
3 PACKAGE="codec2"
4 VERSION="0.9.2"
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*}/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 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
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 }