wok annotate libpri/receipt @ rev 24742

updated libffcall (2.2 -> 2.4)
author Hans-G?nter Theisgen
date Wed Mar 16 10:31:26 2022 +0100 (2022-03-16)
parents 05c8d8d9d934
children bff339676249
rev   line source
pankso@4023 1 # SliTaz package receipt.
pankso@4023 2
pankso@4023 3 PACKAGE="libpri"
Hans-G?nter@23094 4 VERSION="1.6.0"
pankso@4023 5 CATEGORY="system-tools"
pankso@4023 6 SHORT_DESC="C implementation of the Primary Rate ISDN specification (with BRI support)."
pankso@4023 7 MAINTAINER="pankso@slitaz.org"
pascal@15152 8 LICENSE="GPL2"
pascal@23974 9 WEB_SITE="https://www.asterisk.org/"
Hans-G?nter@23094 10
pankso@4023 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@4023 12 WGET_URL="http://downloads.asterisk.org/pub/telephony/libpri/$TARBALL"
pankso@4023 13
Hans-G?nter@23094 14 BUILD_DEPENDS="dahdi-dev dahdi-linux-dev"
Hans-G?nter@23094 15
pascal@24425 16 # What is the latest version available today?
pascal@24425 17 current_version()
pascal@24425 18 {
pascal@24425 19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24425 20 sed "/$PACKAGE-/!d;/tar/!d;/current/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;s|-patch||" | sort -Vr | sed q
pascal@24425 21 }
pascal@24425 22
pankso@4023 23 # Rules to configure and make the package.
pankso@4023 24 compile_rules()
pankso@4023 25 {
Hans-G?nter@23094 26 sed -i 's|uname -m|echo i486|' \
Hans-G?nter@23094 27 Makefile
pascal@15112 28 export CFLAGS="-Wno-error=unused-but-set-variable"
Hans-G?nter@23094 29 sed -i 's|tei = (h->u.data|// &|;s/int tei;/int tei = tei;/' \
Hans-G?nter@23094 30 q921.c
Hans-G?nter@23094 31
pankso@4023 32 make
pankso@4023 33 }
pankso@4023 34
pankso@4023 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4023 36 genpkg_rules()
pankso@4023 37 {
pankso@4023 38 mkdir -p $fs/lib
Hans-G?nter@23094 39 cp -a $src/*.so* $fs/lib
pankso@4023 40 }