restructure #3

Merged
wyj merged 82 commits from dev into main 2026-01-18 20:12:27 -05:00
Showing only changes of commit 3be7eb7483 - Show all commits

View File

@@ -0,0 +1,34 @@
pkgname=pygobject
pkgver=3.50.1
pkgdesc="Python bindings for GObject Introspection"
homepage="https://pygobject.gnome.org"
license=("LGPL-2.1+")
depends=(glib gobject-introspection libffi)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://download.gnome.org/sources/${pkgname}/${pkgver%.*}/${sources[0]}")
sha512sums=("5708756cbc8e2b697442953a7f3d391ace98f1b7811cb905b0d80185f020bf32a775d70c49d1620a9733e83a6862314f2a72fa1b77cb26a01e84b3bff72e068e")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
local meson_args=(
--prefix=/usr
--buildtype=release
--wrap-mode=nodownload
-D python.bytecompile=1
-D pycairo=disabled
-D tests=false
)
meson setup build "${meson_args[@]}"
meson compile -C build
}
src_install() {
meson install -C build --destdir "$pkgdir"
python -m compileall -d /usr/lib "$pkgdir/usr/lib"
python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
}
# vim:ft=sh syn=sh et sw=2: