2022-04-13 23:51:42 +02:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
2022-08-25 20:47:01 +02:00
|
|
|
pkgbase=libgit2-glib
|
2023-07-22 20:51:25 +02:00
|
|
|
pkgname=libgit2-glib # libgit2-glib-docs)
|
2022-08-25 20:47:01 +02:00
|
|
|
_commit=274f81c596b7c248407c14d4a7d58d72fb12cedc # tags/v1.1.0^{}
|
|
|
|
pkgver=1.1.0
|
2023-07-22 20:51:25 +02:00
|
|
|
pkgrel=04
|
2022-04-13 23:51:42 +02:00
|
|
|
pkgdesc="GLib wrapper for libgit2"
|
2022-08-25 20:47:01 +02:00
|
|
|
url="https://gitlab.gnome.org/GNOME/libgit2-glib"
|
|
|
|
makedepends=(gi-docgen git glib2 gobject-introspection gtk-doc libgit2 meson
|
|
|
|
python-gobject vala)
|
|
|
|
#options=(debug) ### uncomment this line to have the debug pkg produced
|
|
|
|
source=(git+$url.git#commit=$_commit)
|
2022-04-13 23:51:42 +02:00
|
|
|
|
2022-08-25 20:47:01 +02:00
|
|
|
_pick() {
|
|
|
|
local p="$1" f d; shift
|
|
|
|
for f; do
|
|
|
|
d="$srcdir/$p/${f#$pkgdir/}"
|
|
|
|
mkdir -p "$(dirname "$d")"
|
|
|
|
mv "$f" "$d"
|
|
|
|
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
|
|
|
|
done
|
2022-04-13 23:51:42 +02:00
|
|
|
}
|
|
|
|
|
2022-08-25 20:47:01 +02:00
|
|
|
pkgver() {
|
2022-04-13 23:51:42 +02:00
|
|
|
cd $pkgname
|
2022-08-25 20:47:01 +02:00
|
|
|
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/v//g;s/-/./g'
|
2022-04-13 23:51:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
arch-meson $pkgname build -D gtk_doc=true
|
|
|
|
meson compile -C build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
meson test -C build --print-errorlogs
|
|
|
|
}
|
|
|
|
|
2022-08-25 20:47:01 +02:00
|
|
|
package_libgit2-glib() {
|
|
|
|
depends=(
|
|
|
|
glib2 libgio-2.0.so libglib-2.0.so libgobject-2.0.so
|
|
|
|
glibc
|
|
|
|
libgit2 libgit2.so
|
|
|
|
)
|
|
|
|
optdepends=(
|
|
|
|
'libgit2-glib-docs: for developer documentation'
|
|
|
|
'python-gobject: for Python integration'
|
|
|
|
)
|
|
|
|
provides=(libgit2-glib-1.0.so)
|
2022-04-13 23:51:42 +02:00
|
|
|
|
|
|
|
meson install -C build --destdir "$pkgdir"
|
2022-08-25 20:47:01 +02:00
|
|
|
(
|
|
|
|
cd "$pkgdir"
|
|
|
|
_pick libgit2-glib-docs usr/share/gtk-doc
|
|
|
|
)
|
2022-04-13 23:51:42 +02:00
|
|
|
|
|
|
|
# strip $pkgdir from embedded paths:
|
|
|
|
python -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
|
|
|
|
python -O -m compileall -d "/usr/lib" "$pkgdir/usr/lib"
|
|
|
|
|
2022-08-25 20:47:01 +02:00
|
|
|
install -vDm 644 $pkgname/{AUTHORS,ChangeLog,NEWS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
|
|
}
|
|
|
|
|
2023-07-22 20:51:25 +02:00
|
|
|
#package_libgit2-glib-docs() {
|
|
|
|
# pkgdesc+=" - documentation"
|
|
|
|
#
|
|
|
|
# mv -v $pkgname/* "$pkgdir"
|
|
|
|
#}
|
2022-04-13 23:51:42 +02:00
|
|
|
|
2023-03-19 18:07:05 +01:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-04-13 23:51:42 +02:00
|
|
|
|
2022-08-25 20:47:01 +02:00
|
|
|
license=(LGPL2.1)
|
|
|
|
|
|
|
|
sha256sums=(SKIP)
|
2022-04-13 23:51:42 +02:00
|
|
|
|
2023-07-22 20:51:25 +02:00
|
|
|
## d23438b3fb494e20889f2c6c529800ec6d63f4ef35046c484eac3272626166a9 libgit2-glib-1.1.0-04-x86_64.pkg.tar.lz
|
2022-04-13 23:51:42 +02:00
|
|
|
|