diff options
-rw-r--r-- | academic/colin/colin.SlackBuild | 26 |
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 |