summaryrefslogtreecommitdiff
path: root/development/ming/ming.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/ming/ming.SlackBuild')
-rw-r--r--development/ming/ming.SlackBuild20
1 files changed, 9 insertions, 11 deletions
diff --git a/development/ming/ming.SlackBuild b/development/ming/ming.SlackBuild
index 974ceb65b4..5eda48ed0e 100644
--- a/development/ming/ming.SlackBuild
+++ b/development/ming/ming.SlackBuild
@@ -23,8 +23,10 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=ming
-VERSION=0.4.4
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.4.7}
+TARNAM=libming-ming
+TARVERSION=$(echo $VERSION | tr . _)
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -59,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
-cd $PRGNAM-$VERSION
+rm -rf $TARNAM-$TARVERSION
+tar xvf $CWD/$TARNAM-$TARVERSION.tar.?z* || tar xvf $CWD/$PRGNAM-$TARVERSION.tar.?z*
+cd $TARNAM-$TARVERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -69,11 +71,7 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Fix PHP 5.4 compatibility
-patch -p0 -d php_ext -i $CWD/patch-ming.c.diff
-
-# Fix building against perl 5.16
-patch -p1 -i $CWD/0001-GvCV-isn-t-an-lvalue-since-Perl-5.13.10.patch
+autoreconf -vif
# static library is activated because the perl extension needs it
CFLAGS="$SLKCFLAGS" \
@@ -124,7 +122,7 @@ find $PKG -depth -type d -empty -delete || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS COPYING HISTORY INSTALL LICENSE* NEWS README TODO \
+cp -a AUTHORS HISTORY INSTALL LICENSE* NEWS README TODO \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild