aboutsummaryrefslogtreecommitdiff
path: root/libraries/libgit2-glib
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2018-09-04 07:44:09 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-09-04 07:52:00 +0700
commit5da706865005224c42c49e53d6b1ea9a5612439c (patch)
treec4eb53081d86f8af8d6b5dff661acd741c8c687e /libraries/libgit2-glib
parent8def30fe1b0d97f292a6866f988f27935fcc593f (diff)
libraries/libgit2-glib: Updated for version 0.26.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libgit2-glib')
-rw-r--r--libraries/libgit2-glib/libgit2-0.27.0.diff12
-rw-r--r--libraries/libgit2-glib/libgit2-glib.SlackBuild18
-rw-r--r--libraries/libgit2-glib/libgit2-glib.info8
3 files changed, 26 insertions, 12 deletions
diff --git a/libraries/libgit2-glib/libgit2-0.27.0.diff b/libraries/libgit2-glib/libgit2-0.27.0.diff
new file mode 100644
index 000000000000..04eb3223c410
--- /dev/null
+++ b/libraries/libgit2-glib/libgit2-0.27.0.diff
@@ -0,0 +1,12 @@
+diff --git i/libgit2-glib/ggit-config.c w/libgit2-glib/ggit-config.c
+index b6536ce..2785574 100644
+--- i/libgit2-glib/ggit-config.c
++++ w/libgit2-glib/ggit-config.c
+@@ -295,6 +295,7 @@ ggit_config_add_file (GgitConfig *config,
+ ret = git_config_add_file_ondisk (_ggit_native_get (config),
+ path,
+ (git_config_level_t)level,
++ NULL,
+ force);
+ g_free (path);
+
diff --git a/libraries/libgit2-glib/libgit2-glib.SlackBuild b/libraries/libgit2-glib/libgit2-glib.SlackBuild
index ea0cda87f67e..f58f20ea250f 100644
--- a/libraries/libgit2-glib/libgit2-glib.SlackBuild
+++ b/libraries/libgit2-glib/libgit2-glib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for libgit2-glib
-# Copyright 2016-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2016-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=libgit2-glib
-VERSION=${VERSION:-0.25.0}
+VERSION=${VERSION:-0.26.4}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,25 +69,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 {} \;
+patch -p1 < $CWD/libgit2-0.27.0.diff
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-./configure \
+meson build \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+ --buildtype=release \
+ -Dgtk_doc=true
-make
-make install DESTDIR=$PKG
+ninja -C build
+DESTDIR=$PKG ninja -C build install
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 ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/libraries/libgit2-glib/libgit2-glib.info b/libraries/libgit2-glib/libgit2-glib.info
index c322640c73ac..7399c4df9311 100644
--- a/libraries/libgit2-glib/libgit2-glib.info
+++ b/libraries/libgit2-glib/libgit2-glib.info
@@ -1,10 +1,10 @@
PRGNAM="libgit2-glib"
-VERSION="0.25.0"
+VERSION="0.26.4"
HOMEPAGE="https://wiki.gnome.org/Projects/Libgit2-glib"
-DOWNLOAD="https://ftp.gnome.org/pub/GNOME/sources/libgit2-glib/0.25/libgit2-glib-0.25.0.tar.xz"
-MD5SUM="adc462f87accb6314adaee401f5f38f3"
+DOWNLOAD="https://ftp.gnome.org/pub/GNOME/sources/libgit2-glib/0.26/libgit2-glib-0.26.4.tar.xz"
+MD5SUM="042bbee8f440adacd0532c1e2f389d52"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="libgit2 python3"
+REQUIRES="libgit2 vala meson"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"