Browse Source

l/json-glib: Upgraded to json-glib-1.4.2.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
cf3765589a
  1. 1
      l/json-glib/json-glib-1.0.4.tar.xz.sha1
  2. 1
      l/json-glib/json-glib-1.4.2.tar.xz.sha256
  3. 18
      l/json-glib/json-glib.SlackBuild

1
l/json-glib/json-glib-1.0.4.tar.xz.sha1

@ -1 +0,0 @@
efdf5a66d1d8fb504448a40ba2352bbfef301074 json-glib-1.0.4.tar.xz

1
l/json-glib/json-glib-1.4.2.tar.xz.sha256

@ -0,0 +1 @@
2d7709a44749c7318599a6829322e081915bdc73f5be5045882ed120bb686dc8 json-glib-1.4.2.tar.xz

18
l/json-glib/json-glib.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2016 Damien Goutte-Gattat
# Copyright (C) 2016,2018 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -24,12 +24,14 @@
#
# Latest json-glib sourcecode is available at:
# <https://wiki.gnome.org/Projects/JsonGlib>.
#
# Depends: d/meson
# Source package infos
NAMESRC=${NAMESRC:-json-glib}
VERSION=${VERSION:-1.0.4}
VERSION=${VERSION:-1.4.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz}
WGET=${WGET:-https://download.gnome.org/sources/json-glib/1.0/$ARCHIVE}
WGET=${WGET:-https://download.gnome.org/sources/json-glib/1.4/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-json-glib}
@ -76,7 +78,7 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Compile
@ -91,14 +93,12 @@ CXXFLAGS=$CPUOPT \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man
make -j $JOBS
make install-strip DESTDIR=$PKG
# Compress man and info pages
find $PKG/usr/man -type f -exec gzip -9 {} \;
# install-strip does not work anymore, WTF?
make install DESTDIR=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 COPYING ChangeLog NEWS $PKG/usr/doc/$NAME
install -m 644 COPYING README.md NEWS $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

Loading…
Cancel
Save