diff options
author | Nicola Murino | 2022-11-03 18:05:49 +0100 |
---|---|---|
committer | Nicola Murino | 2022-11-03 18:05:49 +0100 |
commit | fe34695af6e0d952817c410902bbdfabe05fca98 (patch) | |
tree | 880cc5489aa7316e3388b4723abb4e417dd3ba6a | |
download | aur-fe34695af6e0d952817c410902bbdfabe05fca98.tar.gz |
Initial version
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..88f888eec225 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = mingw-w64-libsoup3 + pkgdesc = HTTP client/server library (mingw-w64) + pkgver = 3.2.2 + pkgrel = 1 + url = https://download.gnome.org/sources/libsoup + arch = any + license = LGPL + makedepends = mingw-w64-meson + makedepends = git + depends = mingw-w64-glib2 + depends = mingw-w64-glib-networking + depends = mingw-w64-sqlite + depends = mingw-w64-libnghttp2 + depends = mingw-w64-libpsl + depends = mingw-w64-brotli + options = !strip + options = !buildflags + options = staticlibs + source = git+https://gitlab.gnome.org/GNOME/libsoup.git#commit=49e0178c6f91725ca348acf6d3c5d1343e6c9eb1 + sha256sums = SKIP + +pkgname = mingw-w64-libsoup3 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8eba5f7b4c1e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: drakkan <nicola.murino at gmail dot com> +pkgname=mingw-w64-libsoup3 +pkgver=3.2.2 +pkgrel=1 +pkgdesc="HTTP client/server library (mingw-w64)" +arch=(any) +url="https://download.gnome.org/sources/libsoup" +license=("LGPL") +depends=('mingw-w64-glib2' 'mingw-w64-glib-networking' 'mingw-w64-sqlite' 'mingw-w64-libnghttp2' 'mingw-w64-libpsl' 'mingw-w64-brotli') +makedepends=('mingw-w64-meson' 'git') +options=(!strip !buildflags staticlibs) +_commit=49e0178c6f91725ca348acf6d3c5d1343e6c9eb1 # tags/3.2.2^0 +source=("git+https://gitlab.gnome.org/GNOME/libsoup.git#commit=$_commit") +sha256sums=('SKIP') + +pkgver() { + cd libsoup + git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' +} + +_architectures="i686-w64-mingw32 x86_64-w64-mingw32" + +build() { + for _arch in ${_architectures}; do + mkdir -p "${srcdir}/libsoup/build-${_arch}" + cd "${srcdir}/libsoup/build-${_arch}" + ${_arch}-meson \ + -D gssapi=disabled \ + -D vapi=disabled \ + -D docs=disabled \ + -D introspection=disabled \ + -D tests=false \ + -D autobahn=disabled \ + -D tls_check=false \ + --default-library both .. + ninja + done +} + +package() { + for _arch in ${_architectures}; do + DESTDIR="${pkgdir}" ninja -C "${srcdir}/libsoup/build-${_arch}" install + done +} + +# vim: ts=2 sw=2 et: |