libgxps: Upgraded to 0.3.0.

This requires meson.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-09-26 12:22:39 +07:00
parent dc1940329e
commit 6a6e4586f4
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libgxps
VERSION=${VERSION:-0.2.5}
VERSION=${VERSION:-0.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_msb}
@ -35,7 +35,7 @@ if [ -z "$ARCH" ]; then
esac
fi
wget -c http://ftp.gnome.org/pub/gnome/sources/$PRGNAM/0.2/$PRGNAM-$VERSION.tar.xz
wget -c https://download.gnome.org/sources/libgxps/0.3/$PRGNAM-$VERSION.tar.xz
CWD=$(pwd)
TMP=${TMP:-/tmp/msb}
@ -71,26 +71,24 @@ 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 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--disable-static \
--build=$ARCH-slackware-linux
mkdir -p build
cd build
make
make install DESTDIR=$PKG
meson --prefix=/usr \
--buildtype=release \
--localstatedir=/var \
--libdir=lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
../
ninja
DESTDIR=$PKG ninja install
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 AUTHORS ChangeLog COPYING NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING NEWS README TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install