diff options
author | Christoph Willing <chris.willing@iinet.net.au> | 2016-03-02 08:06:27 +1000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-03-02 19:12:10 +0700 |
commit | 81ea0ff1735d6cc7cc18d94fb9de1dcaabaa8ac3 (patch) | |
tree | 1cc87696ef29a96010f91a6d946f5ec5ecf30f9c /development/check | |
parent | e7a40af1fcd408976bc86b192fe611e3681db440 (diff) |
development/check: use autotools
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
Diffstat (limited to 'development/check')
-rw-r--r-- | development/check/check.SlackBuild | 32 |
1 files changed, 23 insertions, 9 deletions
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 |