SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't think I want to bother with Alien, it looks like someone's side project for fun. He says it's experimental. I bet by the time I got it set up it wouldn't even work on my guitar pro .deb package for some reason.
You're stuck with alien or src2pkg I think for the easy way out. I've repackaged Debian binaries in the past but it was always a manual effort culminating in a SlackBuild for future use. `ar -x file.deb` should work, and then you'll want to untar the control and data files. data is the main catch but there are pre/post-install/removal scripts that you would have to adapt for Slackware. Also pay attention to any startup scripts, which would have to be adapted for Slackware's BSD-style init scripts unless you want inconsistency.
Oh snap, slack 13.1 is out! Okay this is on hold now. I'm a sub-par linux user and I don't bother with any extra partitions except for swap space so I just save a few files to a removable hard drive and restart from scratch.
#!/bin/sh
# Slackware build script for Guitar Pro 6 (demo)
# Copyright 2010 T3slider
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=guitarpro6
PKGNAM=GuitarPro6Demo
VERSION=rev7994
ARCH=${ARCH:-i386}
BUILD=${BUILD:-1}
TAG=${TAG:-_t3s}
CWD=$(pwd)
TMP=${TMP:-/tmp/t3s}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
mkdir -p $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
ar -x $CWD/$PKGNAM-$VERSION.deb || exit 1
tar -xvf data.tar.gz || exit 1
chown -R root:root .
chmod -R a-s,u+w,go+r-w .
find -type d -exec chmod 755 {} \;
mv usr opt $PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
slack-desc:
Code:
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
|-----handy-ruler------------------------------------------------------|
guitarpro6: guitarpro6
guitarpro6:
guitarpro6: Guitar Pro is first and foremost a software designed to edit
guitarpro6: tablatures for guitar, bass, and other fretted instruments from 4 to
guitarpro6: 8 strings.
guitarpro6:
guitarpro6: http://www.guitar-pro.com/
guitarpro6:
guitarpro6:
guitarpro6:
guitarpro6:
doinst.sh:
Code:
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1
fi
if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache -f -t usr/share/icons/hicolor > /dev/null 2>&1
fi
All untested, so keep that in mind. The package builds properly but I only have a pure 64-bit install so I can't test the app. There may be missing dependencies but I have no idea...you'll see when you try to run it I suppose. Running ldd on the executable might tell you any missing dependencies.
What. You wrote a shellscript just for me? I feel special. I am torrenting 32 bit slack 13.1 right now. I will install it later today and give your script a try and see what happens.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.