[arch-commits] Commit in libgit2-glib/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sat Oct 26 05:37:35 UTC 2019
Date: Saturday, October 26, 2019 @ 05:37:35
Author: foutrelis
Revision: 365797
archrelease: copy trunk to staging-x86_64
Added:
libgit2-glib/repos/staging-x86_64/
libgit2-glib/repos/staging-x86_64/PKGBUILD
(from rev 365796, libgit2-glib/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: libgit2-glib/repos/staging-x86_64/PKGBUILD (from rev 365796, libgit2-glib/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-26 05:37:35 UTC (rev 365797)
@@ -0,0 +1,44 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: David Runge <dave at sleepmap.de>
+
+pkgname=libgit2-glib
+pkgver=0.28.0.1
+pkgrel=3
+pkgdesc="GLib wrapper for libgit2"
+url="https://wiki.gnome.org/Projects/Libgit2-glib"
+license=('LGPL2.1')
+arch=('x86_64')
+depends=('glib2' 'libgit2')
+makedepends=('gobject-introspection' 'gtk-doc' 'meson' 'python-gobject' 'vala')
+provides=('libgit2-glib-1.0.so')
+source=("https://gitlab.gnome.org/gnome/${pkgname}/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
+sha256sums=('f180c3030b33930133b2dd66aecf64ec354433c603323da810ff84f542243350')
+
+prepare() {
+ mv -v "${pkgname}-v${pkgver}" "${pkgname}-${pkgver}"
+}
+
+build() {
+ cd "${pkgname}-${pkgver}"
+ arch-meson build -D gtk_doc=true
+ ninja -C build
+}
+
+check() {
+ cd "${pkgname}-${pkgver}"
+ meson test -C build
+}
+
+package() {
+ cd "${pkgname}-${pkgver}"
+ local py_ver=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+ DESTDIR="$pkgdir" meson install -C build
+ # strip $pkgdir from embedded paths:
+ python -m compileall -d "/usr/lib/python${py_ver}" \
+ "${pkgdir}/usr/lib/python${py_ver}"
+ python -O -m compileall -d "/usr/lib/python${py_ver}" \
+ "${pkgdir}/usr/lib/python${py_ver}"
+ install -vDm 644 {AUTHORS,ChangeLog,NEWS,README} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list