wok-next annotate libpri/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 8940878905f3 |
children |
rev | line source |
---|---|
al@20462 | 1 # SliTaz package receipt v2. |
pankso@4023 | 2 |
pankso@4023 | 3 PACKAGE="libpri" |
slaxemulator@6584 | 4 VERSION="1.4.11.4" |
pankso@4023 | 5 CATEGORY="system-tools" |
al@20462 | 6 SHORT_DESC="C implementation of the Primary Rate ISDN specification (with BRI \ |
al@20462 | 7 support)" |
al@21020 | 8 MAINTAINER="devel@slitaz.org" |
pascal@15152 | 9 LICENSE="GPL2" |
al@20462 | 10 WEB_SITE="http://www.asterisk.org/" |
al@20462 | 11 |
pankso@4023 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@4023 | 13 WGET_URL="http://downloads.asterisk.org/pub/telephony/libpri/$TARBALL" |
pankso@4023 | 14 |
al@21020 | 15 SPLIT="$PACKAGE-dev" |
al@20462 | 16 |
al@20462 | 17 compile_rules() { |
pascal@15112 | 18 export CFLAGS="-Wno-error=unused-but-set-variable" |
pascal@15152 | 19 sed -i 's|tei = (h->u.data|// &|;s/int tei;/int tei = tei;/' q921.c |
al@21020 | 20 |
al@20462 | 21 make || return 1 |
al@20462 | 22 |
al@20462 | 23 mkdir -p $install/lib |
al@20462 | 24 cp -a $src/*.so* $install/lib |
al@20462 | 25 |
al@20462 | 26 mkdir -p $install/usr/lib $install/usr/include |
al@20462 | 27 cp -a $src/*.*a $install/usr/lib |
al@20462 | 28 cp -a $src/libpri.h $install/usr/include |
pankso@4023 | 29 } |
pankso@4023 | 30 |
al@20462 | 31 genpkg_rules() { |
al@20462 | 32 case $PACKAGE in |
al@20462 | 33 libpri) copy @std;; |
al@20462 | 34 *-dev) copy @dev;; |
al@20462 | 35 esac |
pankso@4023 | 36 } |