mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
development/FreeBASIC: Update script.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
fd8234d369
commit
ec89d18bcb
1 changed files with 13 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue