SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libpri"

# SliTaz package receipt.

PACKAGE="libpri"
VERSION="1.6.0"
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="http://downloads.asterisk.org/pub/telephony/libpri/$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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)