summaryrefslogtreecommitdiff
path: root/academic/colin
diff options
context:
space:
mode:
authorProf. HORSTMANN <wmh@eipg.fr>2020-11-10 10:46:37 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-14 17:16:40 +0700
commit6f0305acc4e6191691ef33f701c4198600b0ece3 (patch)
tree612db2a03b687473ccda61156eeee78d5b9778ed /academic/colin
parent8922861ccdc45e9c6b99e62cf5d49a8e22d12cf8 (diff)
downloadslackbuilds-6f0305acc4e6191691ef33f701c4198600b0ece3.tar.gz
academic/colin: Various fixes. Rebuilt.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/colin')
-rw-r--r--academic/colin/colin.SlackBuild26
1 files changed, 9 insertions, 17 deletions
diff --git a/academic/colin/colin.SlackBuild b/academic/colin/colin.SlackBuild
index e4c52e1d69..487197cf4d 100644
--- a/academic/colin/colin.SlackBuild
+++ b/academic/colin/colin.SlackBuild
@@ -24,11 +24,9 @@
PRGNAM=colin
VERSION=${VERSION:-1.8.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-SRCNAM="$(printf $PRGNAM | cut -d- -f2-)"
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
@@ -61,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG
cd $TMP
-rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
-cd $SRCNAM-$VERSION
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.?z*
+cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -75,17 +73,11 @@ qmake
make
# make install DESTDIR not implemented so go manual !
-mkdir -p $PKG/usr/share/applications/
-cp -a xdg/colin.desktop $PKG/usr/share/applications/
-mkdir -p $PKG/usr/share/colin/pixmaps/
-cp -a xdg/colin.xpm $PKG/usr/share/colin/pixmaps/
-cp -a xdg/colin.png $PKG/usr/share/colin/pixmaps/
-cp -a icons $PKG/usr/share/colin/icons
-mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/colin-$VERSION
-mv colin *.o $PKG/usr/lib${LIBDIRSUFFIX}/colin-$VERSION
-mkdir -p $PKG/usr/bin
-# Create a symlink in /usr/bin to the colin binary
-( cd $PKG/usr/bin ; ln -s /usr/lib${LIBDIRSUFFIX}/colin-$VERSION/colin . )
+install -Dm 0644 xdg/colin.desktop $PKG/usr/share/applications/colin.desktop
+install -Dm 0644 xdg/colin.xpm $PKG/usr/share/colin/pixmaps/colin.xpm
+install -Dm 0644 xdg/colin.png $PKG/usr/share/colin/pixmaps/colin.png
+cp -a icons $PKG/usr/share/colin/
+install -Dm 0755 colin $PKG/usr/bin/colin
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