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

main/libpri: modernize, fix url, fix license

parent 1c26ecea
......@@ -2,37 +2,32 @@
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=libpri
pkgver=1.6.0
_pkgver=$pkgver
pkgrel=0
pkgrel=1
pkgdesc="Primary Rate ISDN (PRI) library"
url="http://www.asterisk.orig"
options="!check" # No testsuite
url="https://github.com/asterisk/libpri"
arch="all"
license="GPL"
depends=""
license="GPL-2.0-only"
makedepends="dahdi-linux-dev dahdi-tools-dev"
install=
subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/libpri/releases/$pkgname-$_pkgver.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
source="http://downloads.digium.com/pub/telephony/libpri/releases/$pkgname-$pkgver.tar.gz"
prepare() {
cd "$builddir"
default_prepare || return 1
default_prepare
sed -i -e 's,^#include <sys/signal.h>$,#include <signal.h>,g' \
pritest.c testprilib.c
}
build() {
cd "$builddir"
make LDCONFIG="echo" || return 1
make LDCONFIG="echo"
}
package() {
cd "$builddir"
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"
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