diff options
author | Behnam Momeni | 2022-08-07 12:08:19 +0430 |
---|---|---|
committer | Behnam Momeni | 2022-08-07 12:10:27 +0430 |
commit | 5b08c96a30e1eb1ad320d4a3bfb98025bbf25022 (patch) | |
tree | ec47ae41b5d9a3447db4629b6cc6fd1e83c4ffe7 | |
download | aur-5b08c96a30e1eb1ad320d4a3bfb98025bbf25022.tar.gz |
Initial commit: v1.72.0 of 32-bit gobject-introspection
-rw-r--r-- | .SRCINFO | 39 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 93 | ||||
-rw-r--r-- | x86-linux-gnu | 28 |
4 files changed, 165 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..233689ce065f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,39 @@ +# Generated by mksrcinfo v8 +# Sun Aug 7 07:40:22 UTC 2022 +pkgbase = lib32-gobject-introspection + pkgdesc = Introspection system for GObject-based libraries (32-bit) + pkgver = 1.72.0 + pkgrel = 1 + url = https://wiki.gnome.org/Projects/GObjectIntrospection + arch = x86_64 + license = LGPL + license = GPL + makedepends = bison + makedepends = lib32-cairo + makedepends = git + makedepends = gtk-doc + makedepends = python-sphinx + makedepends = meson + makedepends = lib32-glib2=2.72.3 + depends = python-mako + depends = python-markdown + depends = lib32-python>=3.10 + source = git+https://gitlab.gnome.org/GNOME/gobject-introspection.git#commit=c1ce7d179cfce327162bd206cdf2808bd9bd0cc7 + source = git+https://gitlab.gnome.org/GNOME/glib.git?signed#tag=2.72.3 + source = x86-linux-gnu + sha512sums = SKIP + sha512sums = SKIP + sha512sums = 0be6a1cb2b7d82b25aabdcb7893e67d003d132471055d5853f5b3139c6665b3a1d6b65c63b46388b4af9c2fa0b2200791fb2f727c066e3a89d2c44be569104ad + +pkgname = lib32-gobject-introspection + depends = python-mako + depends = python-markdown + depends = lib32-python>=3.10 + depends = gobject-introspection>=1.72.0 + depends = lib32-gobject-introspection-runtime=1.72.0-1 + +pkgname = lib32-gobject-introspection-runtime + pkgdesc = Introspection system for GObject-based libraries (32-bit) (runtime library) + depends = lib32-glib2 + provides = libgirepository-1.0.so + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..7002466a7353 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +glib/ +gobject-introspection/ +src/ +pkg/ +*.tar.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8e3b318fe6e4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,93 @@ +# Maintainer: Behnam Momeni <sbmomeni [at the] gmail [dot] com> +# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org> +# Contributor: Jan de Groot <jgc@archlinux.org> + +pkgbase=lib32-gobject-introspection +_pkgbase=gobject-introspection +pkgname=(lib32-gobject-introspection lib32-gobject-introspection-runtime) +pkgver=1.72.0 +pkgrel=1 +pkgdesc="Introspection system for GObject-based libraries (32-bit)" +url="https://wiki.gnome.org/Projects/GObjectIntrospection" +arch=(x86_64) +license=(LGPL GPL) +_glibver=2.72.3 +_pyver=3.10 +depends=("python-mako" "python-markdown" "lib32-python>=${_pyver}") +makedepends=(bison lib32-cairo git gtk-doc python-sphinx meson "lib32-glib2=$_glibver") +_commit=c1ce7d179cfce327162bd206cdf2808bd9bd0cc7 # tags/1.72.0^0 +source=("git+https://gitlab.gnome.org/GNOME/gobject-introspection.git#commit=$_commit" + "git+https://gitlab.gnome.org/GNOME/glib.git?signed#tag=$_glibver" + "x86-linux-gnu") +sha512sums=('SKIP' + 'SKIP' + '0be6a1cb2b7d82b25aabdcb7893e67d003d132471055d5853f5b3139c6665b3a1d6b65c63b46388b4af9c2fa0b2200791fb2f727c066e3a89d2c44be569104ad') +validpgpkeys=('923B7025EE03C1C59F42684CF0942E894B2EAFA0') # Philip Withnall <philip@tecnocode.co.uk> + +pkgver() { + cd $_pkgbase + git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g' +} + +build() { + export CC="gcc -m32" + export CXX="g++ -m32" + /usr/bin/meson setup \ + "${_pkgbase}" "build" \ + --prefix /usr \ + --sbindir bin \ + --buildtype plain \ + --libexecdir lib32 \ + --libdir /usr/lib32 \ + --auto-features enabled \ + --wrap-mode nodownload \ + -D gir_dir_prefix=lib32/gobject-introspection/share \ + -D gtk_doc=false \ + -D python=python${_pyver}-32 \ + -D glib_src_dir="$srcdir/glib" \ + --cross-file x86-linux-gnu + sed -i 's/env python3$/env python3-32/' build/tools/g-ir-{scanner,doc-tool,annotation-tool} + /usr/bin/meson compile -C build +} + +check() { + /usr/bin/meson test -C build +} + +_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 +} + +package_lib32-gobject-introspection() { + depends+=("gobject-introspection>=$pkgver" "lib32-gobject-introspection-runtime=$pkgver-$pkgrel") + + export CC="gcc -m32" + export CXX="g++ -m32" + /usr/bin/meson install -C build --destdir "$pkgdir" + + cd "$pkgdir" + + python-32 -m compileall -d /usr/lib32/$_pkgbase usr/lib32/$_pkgbase + python-32 -O -m compileall -d /usr/lib32/$_pkgbase usr/lib32/$_pkgbase + + _pick runtime usr/lib32/lib* + _pick runtime usr/lib32/girepository-* + rm -r usr/{include,share} + for f in usr/bin/*; do + mv "$f" "$f-32" + done +} + +package_lib32-gobject-introspection-runtime() { + pkgdesc+=" (runtime library)" + depends=(lib32-glib2) + provides=(libgirepository-1.0.so) + + mv runtime/* "$pkgdir" +} diff --git a/x86-linux-gnu b/x86-linux-gnu new file mode 100644 index 000000000000..4b90dfe7d92f --- /dev/null +++ b/x86-linux-gnu @@ -0,0 +1,28 @@ +[binaries] +c = '/usr/bin/gcc' +cpp = '/usr/bin/g++' +ar = '/usr/bin/gcc-ar' +strip = '/usr/bin/strip' +pkgconfig = '/usr/bin/pkgconf' +llvm-config = '/usr/bin/llvm-config32' + +[built-in options] +c_args = ['-m32'] +c_link_args = ['-m32'] +cpp_args = ['-m32'] +cpp_link_args = ['-m32'] +vala_args = ['-m32'] +vala_link_args = ['-m32'] + +prefix = '/usr' +libdir = 'lib32' +bindir = 'bin' + +[properties] +pkg_config_libdir = ['/usr/lib32/pkgconfig', '/usr/share/pkgconfig'] + +[host_machine] +system = 'linux' +cpu_family = 'x86' +cpu = 'i686' +endian = 'little' |