SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libpri"

# SliTaz package receipt.

PACKAGE="libpri"
VERSION="1.6.1"
CATEGORY="system-tools"
SHORT_DESC="C implementation of the Primary Rate ISDN specification (with BRI support)."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://www.asterisk.org/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://downloads.asterisk.org/pub/telephony/libpri/releases/$TARBALL"

BUILD_DEPENDS="dahdi-dev dahdi-linux-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/$PACKAGE-/!d;/tar/!d;/current/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;s|-patch||" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|uname -m|echo i486|' \
        Makefile
    export CFLAGS="-Wno-error=unused-but-set-variable"
    sed -i 's|tei = (h->u.data|// &|;s/int tei;/int tei = tei;/' \
        q921.c

    make
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/lib
    cp -a $src/*.so*    $fs/lib
}
5935 packages and 845883 files in cooking database (Thu Jun 27 00:01:54 2024)