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