libraries/libinstpatch: Updated for version 1.1.2.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Michales Michaloudes 2020-04-17 21:42:32 +07:00 committed by Willy Sudiarto Raharjo
parent e971a7a483
commit 62b3f6bd58
No known key found for this signature in database
GPG key ID: 887B8374D7333381
2 changed files with 17 additions and 25 deletions

View file

@ -3,12 +3,12 @@
# Written by Michales Michaloudes korgie@gmail.com
PRGNAM=libinstpatch
VERSION=${VERSION:-1.0.0}
BUILD=${BUILD:-2}
VERSION=${VERSION:-1.1.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@ -18,8 +18,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
@ -42,23 +42,15 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
LDFLAGS="-lgobject-2.0 -lglib-2.0" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr
make
make install DESTDIR=$PKG
@ -67,7 +59,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
ABOUT-NLS CVS-HOWTO INSTALL NEWS AUTHORS COPYING ChangeLog README \
ABOUT-NLS AUTHORS COPYING ChangeLog README.md TODO.tasks \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,8 +1,8 @@
PRGNAM="libinstpatch"
VERSION="1.0.0"
VERSION="1.1.2"
HOMEPAGE="http://swamiproject.org"
DOWNLOAD="http://downloads.sourceforge.net/swami/libinstpatch-1.0.0.tar.gz"
MD5SUM="eca9c505fd0c47fd1f59d40598e8eb63"
DOWNLOAD="https://github.com/swami/libinstpatch/archive/v1.1.2/libinstpatch-1.1.2.tar.gz"
MD5SUM="1987bec70432b308ad161e0618c51160"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""