summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2018-12-05 21:34:30 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-09 13:17:30 +0700
commit3a2e57105f1d58a15ba2e92ad95a128c80ccd89a (patch)
tree4cb087a06a7ab577428c413f3a4ff046d15c9341
parent1247d33132002c04413d41e81e2b01d1b2c8f062 (diff)
downloadslackbuilds-3a2e57105f1d58a15ba2e92ad95a128c80ccd89a.tar.gz
libraries/ois: Updated for version 1.5.0
Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
-rw-r--r--libraries/ois/ois.SlackBuild30
-rw-r--r--libraries/ois/ois.info6
2 files changed, 19 insertions, 17 deletions
diff --git a/libraries/ois/ois.SlackBuild b/libraries/ois/ois.SlackBuild
index 48ef5f043b..e025b00a4c 100644
--- a/libraries/ois/ois.SlackBuild
+++ b/libraries/ois/ois.SlackBuild
@@ -24,8 +24,8 @@
PRGNAM=ois
SRCDIR=OIS
-VERSION=${VERSION:-1.4.0}
-SRCVER=${SRCVER:-1.4}
+VERSION=${VERSION:-1.5.0}
+SRCVER=1.5
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -71,25 +71,27 @@ 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 {} \;
-[ ! -x ./bootstrap ] && chmod +x ./bootstrap
-./bootstrap
+sed -i \
+ -e "s|lib$|lib${LIBDIRSUFFIX}|" \
+ -e "s|\"lib\"|\"lib${LIBDIRSUFFIX}\"|" CMakeLists.txt
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --enable-static=no \
- --build=$ARCH-slackware-linux
+mkdir -p build
+cd build
+ cmake -G "Unix Makefiles" \
+ -DCMAKE_INSTALL_PREFIX:PATH="/usr" \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_BUILD_TYPE=Release ..
-make
-make install DESTDIR=$PKG
+ make VERBOSE=1
+ make install DESTDIR=$PKG
+cd -
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/ois/ois.info b/libraries/ois/ois.info
index a728e1aae4..946b04be90 100644
--- a/libraries/ois/ois.info
+++ b/libraries/ois/ois.info
@@ -1,8 +1,8 @@
PRGNAM="ois"
-VERSION="1.4.0"
+VERSION="1.5.0"
HOMEPAGE="https://github.com/wgois/OIS"
-DOWNLOAD="https://github.com/wgois/OIS/archive/v1.4/OIS-1.4.tar.gz"
-MD5SUM="f9f426c3fd835dd3b811c0f5be07e583"
+DOWNLOAD="https://github.com/wgois/OIS/archive/v1.5/OIS-1.5.tar.gz"
+MD5SUM="be8095ddc0eae530004d4d3abcf01e6d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""