void-packages/srcpkgs/python-gobject/template
2017-04-14 10:41:53 +02:00

66 lines
1.8 KiB
Bash

# Template file for 'python-gobject'
pkgname=python-gobject
version=3.24.1
revision=1
wrksrc="pygobject-${version}"
hostmakedepends="pkg-config gobject-introspection"
makedepends="libglib-devel python-cairo-devel python3-cairo-devel"
depends="gir-freedesktop python-cairo"
pycompile_module="gi pygtkcompat"
short_desc="Python2 bindings for GObject"
homepage="https://live.gnome.org/PyGObject"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
distfiles="${GNOME_SITE}/pygobject/${version%.*}/pygobject-${version}.tar.xz"
checksum=a628a95aa0909e13fb08230b1b98fc48adef10b220932f76d62f6821b3fdbffd
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/8676/steps/shell_3/logs/stdio"
pre_configure() {
mkdir -p gi-${py2_ver}
mv * gi-${py2_ver} || true
cp -a gi-${py2_ver} gi-${py3_ver}
}
do_configure() {
for pyver in $py2_ver $py3_ver; do
cd ${wrksrc}/gi-${pyver}
./configure ${configure_args} --with-python=/usr/bin/python${pyver}
done
}
do_build() {
for pyver in $py2_ver $py3_ver; do
cd ${wrksrc}/gi-${pyver}
make ${makejobs}
done
}
do_install() {
for pyver in $py2_ver $py3_ver; do
cd ${wrksrc}/gi-${pyver}
make DESTDIR=${DESTDIR} install
done
}
python3-gobject_package() {
replaces="python3.4-gobject>=0"
pycompile_module="gi pygtkcompat"
depends="gir-freedesktop python3-cairo"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove ${py3_sitelib}
}
}
python-gobject-devel_package() {
depends="libgirepository-devel python-cairo-devel python3-cairo-devel
python-gobject>=${version}_${revision}
python3-gobject>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
}
}
python3.4-gobject_package() {
build_style=meta
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
depends="python3-gobject>=${version}_${revision}"
}