Commit 5a8e18d5 authored by Leo's avatar Leo Committed by Natanael Copa
Browse files

main/libpri: modernize, fix url, fix license

parent 1c26ecea
...@@ -2,37 +2,32 @@ ...@@ -2,37 +2,32 @@
# Maintainer: Timo Teras <timo.teras@iki.fi> # Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=libpri pkgname=libpri
pkgver=1.6.0 pkgver=1.6.0
_pkgver=$pkgver pkgrel=1
pkgrel=0
pkgdesc="Primary Rate ISDN (PRI) library" pkgdesc="Primary Rate ISDN (PRI) library"
url="http://www.asterisk.orig" options="!check" # No testsuite
url="https://github.com/asterisk/libpri"
arch="all" arch="all"
license="GPL" license="GPL-2.0-only"
depends=""
makedepends="dahdi-linux-dev dahdi-tools-dev" makedepends="dahdi-linux-dev dahdi-tools-dev"
install=
subpackages="$pkgname-dev" subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/libpri/releases/$pkgname-$_pkgver.tar.gz" source="http://downloads.digium.com/pub/telephony/libpri/releases/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
prepare() { prepare() {
cd "$builddir" cd "$builddir"
default_prepare || return 1 default_prepare
sed -i -e 's,^#include <sys/signal.h>$,#include <signal.h>,g' \ sed -i -e 's,^#include <sys/signal.h>$,#include <signal.h>,g' \
pritest.c testprilib.c pritest.c testprilib.c
} }
build() { build() {
cd "$builddir" cd "$builddir"
make LDCONFIG="echo" || return 1 make LDCONFIG="echo"
} }
package() { package() {
cd "$builddir" cd "$builddir"
make LDCONFIG="echo" INSTALL_PREFIX="$pkgdir" install make LDCONFIG="echo" INSTALL_PREFIX="$pkgdir" install
rm -f "$pkgdir"/usr/lib/*.a
} }
md5sums="299beef98fc6e8274bcfa2720db13c6e libpri-1.6.0.tar.gz"
sha256sums="7225ea7ec334a115f9dc08e71f55589c38cb4e00b13964cd2f08cc4e6123e3f6 libpri-1.6.0.tar.gz"
sha512sums="3eb876477cdd27c88f274e4a2e35a67f660b8d8eed140e56c40769982a58f1cdd4e5be352f8f220dc100eedf1ad09286c578430a52d9abe326440c8cbf517fa5 libpri-1.6.0.tar.gz" sha512sums="3eb876477cdd27c88f274e4a2e35a67f660b8d8eed140e56c40769982a58f1cdd4e5be352f8f220dc100eedf1ad09286c578430a52d9abe326440c8cbf517fa5 libpri-1.6.0.tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment