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