summaryrefslogtreecommitdiffstats
path: root/system/porg
diff options
context:
space:
mode:
Diffstat (limited to 'system/porg')
-rw-r--r--system/porg/README4
-rw-r--r--system/porg/porg.SlackBuild22
-rw-r--r--system/porg/porg.info2
3 files changed, 20 insertions, 8 deletions
diff --git a/system/porg/README b/system/porg/README
index 41544f0401..3cf024eeb4 100644
--- a/system/porg/README
+++ b/system/porg/README
@@ -1,5 +1,5 @@
-Porg (formerly known as paco), is a program to aid management of software
-packages installed from source code.
+Porg (formerly known as paco), is a program to aid management of
+software packages installed from source code.
After the installation of such packages, one is usually left with
having no idea of what it was installed and where it all went, making
diff --git a/system/porg/porg.SlackBuild b/system/porg/porg.SlackBuild
index a2f4ca1ad5..94c66933ba 100644
--- a/system/porg/porg.SlackBuild
+++ b/system/porg/porg.SlackBuild
@@ -1,13 +1,16 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for porg
-# Written by Jostein Berntsen <jbernts@broadpark.no>
+# Written by Jostein Berntsen <jvbernts@online.no>
+
+cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=porg
VERSION=${VERSION:-0.10}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -17,7 +20,14 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
+# the name of the created package would be, and then exit. This information
+# could be useful to other scripts.
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -83,9 +93,11 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mv $PKG/usr/share/porg/faq.txt $PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share/$PRGNAM
+rm -f $PKG/usr/lib*/*.la
+
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.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/system/porg/porg.info b/system/porg/porg.info
index 57d779505d..6efa7e1524 100644
--- a/system/porg/porg.info
+++ b/system/porg/porg.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Jostein Berntsen"
-EMAIL="jbernts@broadpark.no"
+EMAIL="jvbernts@online.no"