Browse Source

[trunk] -> [extra] 'gobject-introspection-1.70.0-5' add

master
Dudemanguy 4 months ago
parent
commit
3da30ef274
Signed by: Dudemanguy
GPG Key ID: 4003D2EF625D6492
  1. 28
      gobject-introspection/trunk/PKGBUILD
  2. 28
      gobject-introspection/x86_64/extra/PKGBUILD

28
gobject-introspection/trunk/PKGBUILD

@ -4,7 +4,7 @@
pkgbase=gobject-introspection
pkgname=(gobject-introspection gobject-introspection-runtime)
pkgver=1.70.0
pkgrel=4.1
pkgrel=5
pkgdesc="Introspection system for GObject-based libraries"
url="https://wiki.gnome.org/Projects/GObjectIntrospection"
arch=(x86_64)
@ -27,6 +27,9 @@ pkgver() {
prepare() {
cd $pkgbase
# Fix build with meson 0.61.0
git cherry-pick -n 827494d6415b696a effb1e09dee263cd
}
build() {
@ -40,17 +43,28 @@ check() {
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_gobject-introspection() {
depends+=("gobject-introspection-runtime=$pkgver-$pkgrel")
meson install -C build --destdir "$pkgdir"
python -m compileall -d /usr/lib/$pkgbase "$pkgdir/usr/lib/$pkgbase"
python -O -m compileall -d /usr/lib/$pkgbase "$pkgdir/usr/lib/$pkgbase"
cd "$pkgdir"
python -m compileall -d /usr/lib/$pkgbase usr/lib/$pkgbase
python -O -m compileall -d /usr/lib/$pkgbase usr/lib/$pkgbase
### Split runtime
mkdir -p "$srcdir/runtime/lib"
mv "$pkgdir"/usr/lib/{lib*,girepository-*} "$srcdir/runtime/lib"
_pick runtime usr/lib/lib*
_pick runtime usr/lib/girepository-*
}
package_gobject-introspection-runtime() {
@ -58,5 +72,5 @@ package_gobject-introspection-runtime() {
depends=(glib2)
provides+=(libgirepository-1.0.so)
mv "$srcdir/runtime" "$pkgdir/usr"
mv runtime/* "$pkgdir"
}

28
gobject-introspection/x86_64/extra/PKGBUILD

@ -4,7 +4,7 @@
pkgbase=gobject-introspection
pkgname=(gobject-introspection gobject-introspection-runtime)
pkgver=1.70.0
pkgrel=4.1
pkgrel=5
pkgdesc="Introspection system for GObject-based libraries"
url="https://wiki.gnome.org/Projects/GObjectIntrospection"
arch=(x86_64)
@ -27,6 +27,9 @@ pkgver() {
prepare() {
cd $pkgbase
# Fix build with meson 0.61.0
git cherry-pick -n 827494d6415b696a effb1e09dee263cd
}
build() {
@ -40,17 +43,28 @@ check() {
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_gobject-introspection() {
depends+=("gobject-introspection-runtime=$pkgver-$pkgrel")
meson install -C build --destdir "$pkgdir"
python -m compileall -d /usr/lib/$pkgbase "$pkgdir/usr/lib/$pkgbase"
python -O -m compileall -d /usr/lib/$pkgbase "$pkgdir/usr/lib/$pkgbase"
cd "$pkgdir"
python -m compileall -d /usr/lib/$pkgbase usr/lib/$pkgbase
python -O -m compileall -d /usr/lib/$pkgbase usr/lib/$pkgbase
### Split runtime
mkdir -p "$srcdir/runtime/lib"
mv "$pkgdir"/usr/lib/{lib*,girepository-*} "$srcdir/runtime/lib"
_pick runtime usr/lib/lib*
_pick runtime usr/lib/girepository-*
}
package_gobject-introspection-runtime() {
@ -58,5 +72,5 @@ package_gobject-introspection-runtime() {
depends=(glib2)
provides+=(libgirepository-1.0.so)
mv "$srcdir/runtime" "$pkgdir/usr"
mv runtime/* "$pkgdir"
}

Loading…
Cancel
Save