Files
BMLFS/build-scripts/pygobject3.build
2024-08-18 15:18:03 -05:00

45 lines
1.5 KiB
Bash

#! /bin/bash
# PyGObject 3
# Source: https://download.gnome.org/sources/pygobject/3.48/pygobject-3.48.2.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: PyCairo, gobject-introspection
# Recommended: NONE
# Optional: NONE
meson setup --prefix=/usr -Dpython=python3 OUT &&
read -p "Compile?" && ninja -C OUT -j2 &&
sudo -S DESTDIR=$BUILD ninja -C OUT install &&
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
pygobject3: pygobject3 (GObject bindings for Python)
pygobject3:
pygobject3: This archive contains bindings for the GObject, to be used in Python.
pygobject3: It is a fairly complete set of bindings, it's already rather useful,
pygobject3: and is usable to write moderately complex programs.
pygobject3:
pygobject3: pygobject's home page: http://www.pygtk.org/
pygobject3:
pygobject3:
pygobject3:
pygobject3:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/pygobject3-3.48.2-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*