summaryrefslogtreecommitdiffstats
path: root/libraries/asio/asio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/asio/asio.SlackBuild')
-rw-r--r--libraries/asio/asio.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/libraries/asio/asio.SlackBuild b/libraries/asio/asio.SlackBuild
index 7f6e627f6a..a6135bf387 100644
--- a/libraries/asio/asio.SlackBuild
+++ b/libraries/asio/asio.SlackBuild
@@ -27,7 +27,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=asio
-VERSION=${VERSION:-1.22.1}
+VERSION=${VERSION:-1.28.2}
+GIT_TAG=${GIT_TAG:-asio-1-28-2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -40,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# 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
@@ -71,9 +69,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $PRGNAM-$GIT_TAG
+tar xvf $CWD/$PRGNAM-$GIT_TAG.tar.gz
+cd $PRGNAM-$GIT_TAG
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -86,7 +84,8 @@ find -L . \
# --enable-separate-compilation separate compilation of asio source
# --enable-boost-coroutine use Boost.Coroutine to implement stackful coroutines
# --with-openssl=DIR location of openssl
-#
+#
+cd asio
./autogen.sh
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -98,8 +97,7 @@ make
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-# we leave out doc/ for now
-cp -raf COPYING INSTALL LICENSE_1_0.txt README doc/ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -raf COPYING LICENSE_1_0.txt README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install