diff options
author | Matteo Bernardini | 2020-01-12 12:08:26 +0100 |
---|---|---|
committer | Matteo Bernardini | 2020-01-12 12:08:26 +0100 |
commit | 0c6fe367a7009c5bbabc3071f8cccc77a37859eb (patch) | |
tree | ac54688f55ad545306ad664b6b58a85e87de6768 /system/dahdi-complete/dahdi-complete.SlackBuild | |
parent | 3066e0530b82d92e7856c44afb715f6fae0a5df0 (diff) | |
download | slackbuilds-0c6fe367a7009c5bbabc3071f8cccc77a37859eb.tar.gz |
20200112.1 global branch merge.current-20200112.1
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/dahdi-complete/dahdi-complete.SlackBuild')
-rw-r--r-- | system/dahdi-complete/dahdi-complete.SlackBuild | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/system/dahdi-complete/dahdi-complete.SlackBuild b/system/dahdi-complete/dahdi-complete.SlackBuild index c6984aae30..bbfbde084c 100644 --- a/system/dahdi-complete/dahdi-complete.SlackBuild +++ b/system/dahdi-complete/dahdi-complete.SlackBuild @@ -10,7 +10,7 @@ # All rights reserved. PRGNAM=dahdi-complete -VERSION=${VERSION:-2.10.2} +VERSION=${VERSION:-3.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -61,16 +61,19 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -sed -i -e 's/ -Werror//' tools/acinclude.m4 tools/xpp/Makefile -sed -i -e 's/-Werror //' tools/Makefile +sed -i -e 's/ -Werror//' tools/acinclude.m4 tools/xpp/Makefile.am +sed -i -e 's/-Werror //' tools/Makefile.am # Fix Perl install location (otherwise it installs to /usr/local/share/perl5) -sed -i -e 's/sitelib/vendorlib/' linux/build_tools/live_dahdi tools/xpp/Makefile +sed -i -e 's/sitelib/vendorlib/' linux/build_tools/live_dahdi tools/xpp/Makefile.am cd linux make all cd ../tools +./bootstrap.sh +autoreconf -fi +CPPFLAGS="-I$(pwd)/../linux/include" \ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ @@ -88,6 +91,10 @@ make install DESTDIR=$PKG cd .. make config DESTDIR=$PKG +mkdir -p $PKG/usr/share/perl5/vendor_perl +mv $PKG/usr/local/share/perl5/* $PKG/usr/share/perl5/vendor_perl/ +rm -fR $PKG/usr/local + # move config files to .new cd $PKG/etc for file in $(find . -type f); do @@ -103,7 +110,7 @@ find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done # Clean up zero-length firmware files -find $PKG/lib/firmware -size 0 -delete +find $PKG/lib/firmware -size 0 -delete || true # Remove unused directory rm -rf $PKG/usr/lib |