diff options
Diffstat (limited to 'development/FreeBASIC')
-rw-r--r-- | development/FreeBASIC/FreeBASIC.SlackBuild | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/development/FreeBASIC/FreeBASIC.SlackBuild b/development/FreeBASIC/FreeBASIC.SlackBuild index c099f49a3cc02..03bfd240eeb81 100644 --- a/development/FreeBASIC/FreeBASIC.SlackBuild +++ b/development/FreeBASIC/FreeBASIC.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=FreeBASIC VERSION=${VERSION:-1.04.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -75,14 +75,20 @@ 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 {} \; -mkdir -p $PKG/usr/bin $PKG/usr/include/${PRGNAM,,} $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,} \ - $PKG/usr/man/man1 +mkdir -p $PKG/usr/bin $PKG/usr/include/${PRGNAM,,} $PKG/usr/lib/${PRGNAM,,} \ + $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,} $PKG/usr/man/man1 install -D -m0755 bin/fbc $PKG/usr/bin/fbc cp -rf include/${PRGNAM,,}/* $PKG/usr/include/${PRGNAM,,} cp -rf lib/${PRGNAM,,}/* $PKG/usr/lib${LIBDIRSUFFIX}/${PRGNAM,,} -gzip -c doc/fbc.1 > $PKG/usr/man/man1/fbc.1.gz +# fix linking library for x86_64 arch +if [ "$ARCH" = "x86_64" ]; then + ( + cd /usr/lib${LIBDIRSUFFIX} + ln -s /usr/lib${LIBDIRSUFFIX}/${PRGNAM,,}/linux-x86_64 $PKG/usr/lib/${PRGNAM,,} + ) +fi # fix linking with libtinfo over libncurses if [[ -L "/usr/lib${LIBDIRSUFFIX}/libtinfo.so.5" && -f "/usr/lib${LIBDIRSUFFIX}/libtinfo.so.5" ]]; then @@ -94,6 +100,9 @@ else ) fi +# gzip man page +gzip -c doc/fbc.1 > $PKG/usr/man/man1/fbc.1.gz + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/*.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |