From 81ea0ff1735d6cc7cc18d94fb9de1dcaabaa8ac3 Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Wed, 2 Mar 2016 08:06:27 +1000 Subject: development/check: use autotools Signed-off-by: Christoph Willing --- development/check/check.SlackBuild | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'development/check') diff --git a/development/check/check.SlackBuild b/development/check/check.SlackBuild index c6d5035d9619..20685790570e 100644 --- a/development/check/check.SlackBuild +++ b/development/check/check.SlackBuild @@ -69,20 +69,34 @@ 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 "s|DESTINATION lib|DESTINATION lib${LIBDIRSUFFIX}|" lib/CMakeLists.txt -sed -i "s|DESTINATION lib|DESTINATION lib${LIBDIRSUFFIX}|" src/CMakeLists.txt -mkdir -p build - cmake \ - -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release . - make - make install DESTDIR=$PKG +autoreconf --install + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +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 + +mv $PKG/usr/share/info $PKG/usr/ +rm -f $PKG/usr/info/dir +gzip -9 $PKG/usr/info/*.info* + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/doc cp -a AUTHORS THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3