wok-next diff libpri/receipt @ rev 20678
Up clisp (2.50)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 15 02:59:03 2018 +0300 (2018-05-15) |
parents | e3944c37af3a |
children | d5aab818505e |
line diff
1.1 --- a/libpri/receipt Thu Aug 15 13:59:18 2013 +0000 1.2 +++ b/libpri/receipt Tue May 15 02:59:03 2018 +0300 1.3 @@ -1,27 +1,35 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="libpri" 1.8 VERSION="1.4.11.4" 1.9 CATEGORY="system-tools" 1.10 -SHORT_DESC="C implementation of the Primary Rate ISDN specification (with BRI support)." 1.11 +SHORT_DESC="C implementation of the Primary Rate ISDN specification (with BRI \ 1.12 +support)" 1.13 MAINTAINER="pankso@slitaz.org" 1.14 LICENSE="GPL2" 1.15 +WEB_SITE="http://www.asterisk.org/" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://www.asterisk.org/" 1.19 WGET_URL="http://downloads.asterisk.org/pub/telephony/libpri/$TARBALL" 1.20 1.21 -# Rules to configure and make the package. 1.22 -compile_rules() 1.23 -{ 1.24 - cd $src 1.25 +SPLIT="libpri-dev" 1.26 + 1.27 +compile_rules() { 1.28 export CFLAGS="-Wno-error=unused-but-set-variable" 1.29 sed -i 's|tei = (h->u.data|// &|;s/int tei;/int tei = tei;/' q921.c 1.30 - make 1.31 + make || return 1 1.32 + 1.33 + mkdir -p $install/lib 1.34 + cp -a $src/*.so* $install/lib 1.35 + 1.36 + mkdir -p $install/usr/lib $install/usr/include 1.37 + cp -a $src/*.*a $install/usr/lib 1.38 + cp -a $src/libpri.h $install/usr/include 1.39 } 1.40 1.41 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.42 -genpkg_rules() 1.43 -{ 1.44 - mkdir -p $fs/lib 1.45 - cp -a $src/*.so* $fs/lib 1.46 +genpkg_rules() { 1.47 + case $PACKAGE in 1.48 + libpri) copy @std;; 1.49 + *-dev) copy @dev;; 1.50 + esac 1.51 }