72 lines
1.9 KiB
Bash
72 lines
1.9 KiB
Bash
# Template file for 'python-gobject'
|
|
pkgname=python-gobject
|
|
version=3.16.2
|
|
revision=1
|
|
wrksrc="pygobject-${version}"
|
|
hostmakedepends="pkg-config gobject-introspection"
|
|
makedepends="libglib-devel python-cairo-devel python3.4-cairo-devel"
|
|
depends="gir-freedesktop python-cairo>=1.10.0_2"
|
|
replaces="pygobject>=0"
|
|
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=de620e00fe7ecb788aa2dc0d664e41f71b8e718e728168e8d982cf193a9e7e64
|
|
|
|
nocross="http://build.voidlinux.eu/builders/armv7l_builder/builds/8676/steps/shell_3/logs/stdio"
|
|
|
|
do_configure() {
|
|
# python2
|
|
mkdir ${wrksrc}/build-python2
|
|
cd ${wrksrc}/build-python2
|
|
../configure ${configure_args} --with-python=/usr/bin/python
|
|
|
|
# python3.4
|
|
mkdir ${wrksrc}/build-python3.4
|
|
cd ${wrksrc}/build-python3.4
|
|
../configure ${configure_args} --with-python=/usr/bin/python3.4
|
|
}
|
|
do_build() {
|
|
# python2
|
|
cd ${wrksrc}/build-python2
|
|
make ${makejobs}
|
|
|
|
# python3.4
|
|
cd ${wrksrc}/build-python3.4
|
|
make ${makejobs}
|
|
}
|
|
do_install() {
|
|
# python2
|
|
cd ${wrksrc}/build-python2
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
# python3.4
|
|
cd ${wrksrc}/build-python3.4
|
|
make DESTDIR=${DESTDIR} install
|
|
}
|
|
|
|
python3.4-gobject_package() {
|
|
depends="gir-freedesktop python3.4-cairo>=1.10.0_2"
|
|
replaces="py3gobject>=0"
|
|
short_desc="Python3.4 bindings for GObject"
|
|
pkg_install() {
|
|
vmkdir usr/lib
|
|
mv ${DESTDIR}/usr/lib/python3.4 ${PKGDESTDIR}/usr/lib
|
|
}
|
|
}
|
|
python-gobject-devel_package() {
|
|
depends="libgirepository-devel
|
|
python-cairo-devel>=1.10.0_2
|
|
python3.4-cairo-devel>=1.10.0_2
|
|
python-gobject>=${version}_${revision}
|
|
python3.4-gobject>=${version}_${revision}"
|
|
replaces="pygobject-devel>=0"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
rm -rf ${DESTDIR}/python3.4
|
|
}
|
|
}
|