wok annotate libotr/receipt @ rev 24944

updated n2n (2.4 -> 3.0)
author Hans-G?nter Theisgen
date Fri Apr 22 16:44:33 2022 +0100 (2022-04-22)
parents a74c70f5faaa
children
rev   line source
pascal@15216 1 # SliTaz package receipt.
pascal@15216 2
pascal@15216 3 PACKAGE="libotr"
Hans-G?nter@21270 4 VERSION="4.1.1"
pascal@15216 5 CATEGORY="network"
pascal@15216 6 SHORT_DESC="Allows you to have private conversations over messenger."
pascal@15216 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15216 8 LICENSE="GPL2 LGPL2.1"
pascal@24433 9 WEB_SITE="https://otr.cypherpunks.ca/"
Hans-G?nter@21270 10
pascal@15216 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@15216 12 WGET_URL="$WEB_SITE$TARBALL"
pascal@15216 13
pascal@15216 14 DEPENDS="libgcrypt libgpg-error"
pascal@15216 15 BUILD_DEPENDS="libgcrypt-dev libgpg-error-dev"
pascal@15216 16
pascal@24433 17 # What is the latest version available today?
pascal@24433 18 current_version()
pascal@24433 19 {
pascal@24433 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24433 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24433 22 }
pascal@24433 23
pascal@15216 24 # Rules to configure and make the package.
pascal@15216 25 compile_rules()
pascal@15216 26 {
Hans-G?nter@21270 27 ./configure \
Hans-G?nter@21270 28 --prefix=/usr \
Hans-G?nter@21270 29 $CONFIGURE_ARGS &&
Hans-G?nter@21270 30 make -j 1 &&
pascal@15216 31 make DESTDIR=$DESTDIR install
pascal@15216 32 }
pascal@15216 33
pascal@15216 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@15216 35 genpkg_rules()
pascal@15216 36 {
pascal@15216 37 mkdir -p $fs/usr/lib
Hans-G?nter@21270 38
Hans-G?nter@21270 39 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@21270 40 cp -a $install/usr/bin $fs/usr
pascal@15216 41 }