summaryrefslogtreecommitdiff
path: root/accessibility/jpilot/jpilot.SlackBuild
diff options
context:
space:
mode:
authoralkos333 <me@alkos333.net>2010-05-13 00:20:33 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-13 00:20:33 +0200
commitedd7158cefed143f2b5581f7aab730c17514e2ec (patch)
tree82af192470cf1d06069a910bbf3c9e417d1537c4 /accessibility/jpilot/jpilot.SlackBuild
parent9a530f53d2aa8d11647cdd28a67d292f71fd5058 (diff)
downloadslackbuilds-edd7158cefed143f2b5581f7aab730c17514e2ec.tar.gz
accessibility/jpilot: Updated for version 1.6.2
Diffstat (limited to 'accessibility/jpilot/jpilot.SlackBuild')
-rw-r--r--accessibility/jpilot/jpilot.SlackBuild22
1 files changed, 15 insertions, 7 deletions
diff --git a/accessibility/jpilot/jpilot.SlackBuild b/accessibility/jpilot/jpilot.SlackBuild
index 1e05af047c..f03c88605f 100644
--- a/accessibility/jpilot/jpilot.SlackBuild
+++ b/accessibility/jpilot/jpilot.SlackBuild
@@ -24,11 +24,8 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-set -e
-
PRGNAM=jpilot
-VERSION=${VERSION:-1.6.0}
+VERSION=${VERSION:-1.6.2}
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -40,16 +37,21 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLCKFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -58,14 +60,19 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Use correct libdir for the plugins
+patch -p1 < $CWD/jpilot-1.6.2-fixup_plugins_libdir.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc
+ --docdir=/usr/doc \
+ --build=$ARCH-slackware-linux
make
make install-strip DESTDIR=$PKG
@@ -82,6 +89,7 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \;
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
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}