libraries/miniupnpc: Updated for version 1.9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
c7fbaad4f0
commit
754a0bef1c
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for miniupnpc
|
# Slackware build script for miniupnpc
|
||||||
|
|
||||||
# Copyright 2012-2013 Larry Hajali <larryhaja[at]gmail[dot]com>
|
# Copyright 2012-2014 Larry Hajali <larryhaja[at]gmail[dot]com>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=miniupnpc
|
PRGNAM=miniupnpc
|
||||||
VERSION=${VERSION:-1.8}
|
VERSION=${VERSION:-1.9}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
@ -69,14 +69,14 @@ find -L . \
|
||||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||||
-exec chmod 644 {} \;
|
-exec chmod 644 {} \;
|
||||||
|
|
||||||
# Slackware/Slackbuilds.org specific info.
|
# Slackware specific info.
|
||||||
patch -p1 < $CWD/slackware-version.patch
|
patch -p1 < $CWD/slackware-version.patch
|
||||||
sed -i 's|share/man|man|' Makefile
|
sed -i 's|share/man|man|' Makefile
|
||||||
sed -i -e 's|\.a"|\.so"|' -e "s|version=\".*\"|version=\"$VERSION\"|" setup.py
|
sed -i -e 's|\.a"|\.so"|' -e "s|version=\".*\"|version=\"$VERSION\"|" setup.py
|
||||||
|
|
||||||
# Upstream Cmake causes build problems. We're going to use the makefile instead.
|
# Upstream Cmake causes build problems. We're going to use the makefile instead.
|
||||||
CFLAGS="$SLKCFLAGS" LIBDIR="lib${LIBDIRSUFFIX}" make
|
CFLAGS="$SLKCFLAGS" LIBDIR="lib${LIBDIRSUFFIX}" make
|
||||||
make install PREFIX=$PKG LIBDIR="lib${LIBDIRSUFFIX}"
|
make install DESTDIR=$PKG LIBDIR="lib${LIBDIRSUFFIX}"
|
||||||
|
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
python setup.py install --root=$PKG
|
python setup.py install --root=$PKG
|
||||||
|
@ -85,16 +85,16 @@ python setup.py install --root=$PKG
|
||||||
if `python3 -c 'import distutils' 2>/dev/null`; then
|
if `python3 -c 'import distutils' 2>/dev/null`; then
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
python3 setup.py build
|
python3 setup.py build
|
||||||
python3 setup.py install --root=$PKG --no-compile
|
python3 setup.py install --root=$PKG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove static library.
|
# Remove static library.
|
||||||
rm -f $PKG/usr/lib$LIBDIRSUFFIX/lib$PRGNAM.a
|
rm -f $PKG/usr/lib${LIBDIRSUFFIX}/lib${PRGNAM}.a
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
find $PKG/usr/man -type f -exec chmod 0644 '{}' \;
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a Changelog.txt LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a Changelog.txt LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="miniupnpc"
|
PRGNAM="miniupnpc"
|
||||||
VERSION="1.8"
|
VERSION="1.9"
|
||||||
HOMEPAGE="http://miniupnp.free.fr/"
|
HOMEPAGE="http://miniupnp.free.fr/"
|
||||||
DOWNLOAD="http://miniupnp.free.fr/files/miniupnpc-1.8.tar.gz"
|
DOWNLOAD="http://miniupnp.free.fr/files/miniupnpc-1.9.tar.gz"
|
||||||
MD5SUM="065bf20a20ebe605c675b7a5aaef340a"
|
MD5SUM="5ef3ba321e6df72d6519b728b292073e"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES="%README%"
|
||||||
MAINTAINER="Larry Hajali"
|
MAINTAINER="Larry Hajali"
|
||||||
EMAIL="larryhaja[at]gmail[dot]com"
|
EMAIL="larryhaja[at]gmail[dot]com"
|
||||||
|
|
Loading…
Reference in New Issue