libraries/ois: Updated for version 1.5.0

Signed-off-by: Larry Hajali <larryhaja[at]gmail[dot]com>
This commit is contained in:
Larry Hajali 2018-12-05 21:34:30 -08:00 committed by Willy Sudiarto Raharjo
parent 1247d33132
commit 3a2e57105f
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
2 changed files with 19 additions and 17 deletions

View File

@ -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

View File

@ -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=""