jobextra/glib-networking/PKGBUILD

59 lines
1.5 KiB
Bash

#!/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 |---------------------------------------
pkgname=glib-networking
pkgver=2.78.1
pkgrel=01
epoch=1
pkgdesc="Network extensions for GLib w/o systemd"
url="https://gitlab.gnome.org/GNOME/glib-networking"
depends=(glib2 libproxy gnutls gsettings-desktop-schemas)
makedepends=(meson git libxml2)
checkdepends=(ca-certificates)
# options=(debug) ## uncomment this line to have the debug pkg produced
_commit=ff3ed94057edfd2e4d4c45c5e53e5b41d19fad6a # tags/2.78.1^0
source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#commit=$_commit")
pkgver() {
cd $pkgname
git describe --tags | sed -r 's/\.([a-z])/\1/;s/([a-z])\./\1/;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd $pkgname
# # Fix tests with libproxy 0.5
# git cherry-pick -n a7db10e8862050f19af5c2eebcd1d590a04d5ced
}
build() {
arch-meson $pkgname build
meson compile -C build
}
# 3 tests fail relating to openssl??? on this 1:2.76.1 version
#check() {
# meson test -C build --print-errorlogs
#}
package() {
meson install -C build --destdir "$pkgdir"
rm -rf $pkgdir/usr/lib/systemd
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(LGPL-2.1-or-later)
sha256sums=(SKIP)
## bf157373bb2b46b99052ee07395f07f63dfc2e18cf7b7f40cb385d4a3da9b8d0 glib-networking-1_2.78.1-01-x86_64.pkg.tar.lz