aboutsummaryrefslogtreecommitdiff
path: root/libraries/rest
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-20 11:36:48 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-20 11:36:48 +0700
commit47c8d6436edfacbffa2383156dffad48affae066 (patch)
treee43fe3e1fcae914488f7a90a1aaa1eaa5801b461 /libraries/rest
parenta6f967420b7f82d4f08288111136cb905f4d57d1 (diff)
libraries/rest: Updated for version 0.9.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/rest')
-rw-r--r--libraries/rest/rest.SlackBuild43
-rw-r--r--libraries/rest/rest.info8
2 files changed, 27 insertions, 24 deletions
diff --git a/libraries/rest/rest.SlackBuild b/libraries/rest/rest.SlackBuild
index 4cccb90a79cf..a141140cc1f7 100644
--- a/libraries/rest/rest.SlackBuild
+++ b/libraries/rest/rest.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for rest
-# Copyright 2013-2016 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2013-2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rest
-VERSION=${VERSION:-0.8.1}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-0.9.1}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -79,25 +76,31 @@ 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 \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir build
+cd build
+ CFLAGS="$SLKCFLAGS" \
+ CXXFLAGS="$SLKCFLAGS" \
+ meson .. \
+ --buildtype=release \
+ --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ -Dstrip=true \
+ -Dgtk_doc=false \
+ -Dtests=false \
+ -Dexamples=false
+ "${NINJA:=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 COPYING INSTALL README docs/reference/rest/html/ $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
rm -rf $PKG/usr/share/gtk-doc/
diff --git a/libraries/rest/rest.info b/libraries/rest/rest.info
index 620f08212255..663a3bcc5d10 100644
--- a/libraries/rest/rest.info
+++ b/libraries/rest/rest.info
@@ -1,10 +1,10 @@
PRGNAM="rest"
-VERSION="0.8.1"
+VERSION="0.9.1"
HOMEPAGE="https://www.gtk.org/"
-DOWNLOAD="https://ftp.gnome.org/pub/GNOME/sources/rest/0.8/rest-0.8.1.tar.xz"
-MD5SUM="ece4547298a81105f307369d73c21b9d"
+DOWNLOAD="https://ftp.gnome.org/pub/GNOME/sources/rest/0.9/rest-0.9.1.tar.xz"
+MD5SUM="b997b83232be3814a1b78530c5700df9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES=""
+REQUIRES="python3-typogrify gtksourceview5 libadwaita libsoup3"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"