2016-01-11 00:28:28 +00:00
|
|
|
# $Id$
|
|
|
|
# Contributor: Dennis "Gyroplast" Herbrich <dennis@archlinux.org>, dorphell <dorphell@archlinux.org>
|
|
|
|
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - copy current config.{sub,guess} for AArch64
|
|
|
|
# - don't patch va_list.patch, breaks ARM builds
|
2017-07-19 20:13:44 +00:00
|
|
|
# - autoreconf in capiinfo, rcapid, and capiinit as well to fix intermittent build failures
|
2016-01-11 00:28:28 +00:00
|
|
|
|
|
|
|
pkgname=isdn4k-utils
|
|
|
|
pkgver=3.27
|
2017-07-19 19:50:36 +00:00
|
|
|
pkgrel=3
|
2016-01-11 00:28:28 +00:00
|
|
|
pkgdesc="User space administration programs and tools for ISDN"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://www.isdn4linux.de/"
|
|
|
|
license=('GPL')
|
|
|
|
makedepends=('git')
|
|
|
|
depends=('ncurses' 'sh')
|
|
|
|
backup=(etc/isdn/{callerid.conf,isdn.conf,rate.conf,isdnlog.isdnctrl0.options})
|
|
|
|
options=('!makeflags')
|
|
|
|
source=(isdn4k-utils::git+git://git.misdn.eu/isdn4k-utils.git#tag=v${pkgver}
|
|
|
|
config
|
|
|
|
gnu89-inline.patch
|
|
|
|
va_list.patch)
|
|
|
|
replaces=('capi4k-utils')
|
|
|
|
md5sums=('SKIP'
|
|
|
|
'ea3c71054234f9ef6bcf9325e36c4a38'
|
|
|
|
'165084a9096cc1ad043cc00a5cc05c0b'
|
|
|
|
'81709ee10336a2df684a5398f42ef514')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
find . -name config.sub -exec chmod +w {} \; -exec cp /usr/share/libtool/build-aux/config.sub {} \;
|
|
|
|
find . -name config.guess -exec chmod +w {} \; -exec cp /usr/share/libtool/build-aux/config.guess {} \;
|
|
|
|
CPPFLAGS="$CPPFLAGS -O2"
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
patch -Np1 -i $srcdir/gnu89-inline.patch
|
|
|
|
#patch -Np1 -i $srcdir/va_list.patch
|
|
|
|
cp $srcdir/config ./.config
|
|
|
|
cd capiinfo
|
|
|
|
aclocal
|
|
|
|
automake --add-missing
|
|
|
|
autoreconf
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
cd capifax
|
|
|
|
aclocal
|
|
|
|
automake --add-missing
|
|
|
|
autoreconf
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
cd capiinfo
|
|
|
|
aclocal
|
|
|
|
automake --add-missing
|
|
|
|
autoreconf
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
cd rcapid
|
|
|
|
aclocal
|
|
|
|
automake --add-missing
|
|
|
|
autoreconf
|
|
|
|
cd $srcdir/$pkgname
|
2017-07-19 20:13:44 +00:00
|
|
|
cd capiinit
|
|
|
|
aclocal
|
|
|
|
automake --add-missing
|
|
|
|
autoreconf
|
|
|
|
cd $srcdir/$pkgname
|
2016-01-11 00:28:28 +00:00
|
|
|
make subconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname
|
2017-07-19 19:50:36 +00:00
|
|
|
PERL_USE_UNSAFE_INC=1 make
|
2016-01-11 00:28:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname
|
|
|
|
install -dm755 $pkgdir/usr/bin
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
chmod 755 $pkgdir/usr/bin/*
|
|
|
|
}
|