76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
# Template file for 'pygobject'
|
|
pkgname=pygobject
|
|
version=3.10.0
|
|
revision=2
|
|
hostmakedepends="which pkg-config gobject-introspection>=1.38"
|
|
makedepends="py2cairo-devel>=1.10.0_2 pycairo-devel>=1.10.0_3 libglib-devel"
|
|
short_desc="Python bindings for GObject"
|
|
homepage="http://www.pygtk.org/"
|
|
license="LGPL-2.1"
|
|
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
checksum=8aaa1f83fdb2e30bae77405a63a8be600b311a04a4cdc952b2ab62ee81aad077
|
|
|
|
do_configure() {
|
|
# python2
|
|
mkdir ${wrksrc}/build-python2
|
|
cd ${wrksrc}/build-python2
|
|
../configure ${configure_args} --with-python=/usr/bin/python
|
|
|
|
# python3
|
|
mkdir ${wrksrc}/build-python3
|
|
cd ${wrksrc}/build-python3
|
|
../configure ${configure_args} --with-python=/usr/bin/python3
|
|
}
|
|
|
|
do_build() {
|
|
# python2
|
|
cd ${wrksrc}/build-python3
|
|
make ${makejobs}
|
|
|
|
# python3
|
|
cd ${wrksrc}/build-python3
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
# python2
|
|
cd ${wrksrc}/build-python2
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
# python3
|
|
cd ${wrksrc}/build-python3
|
|
make DESTDIR=${DESTDIR}/python3 install
|
|
}
|
|
|
|
py3gobject_package() {
|
|
short_desc="Python3 bindings for GObject"
|
|
pkg_install() {
|
|
vmkdir usr/lib
|
|
mv ${DESTDIR}/python3/usr/lib/*.so* ${PKGDESTDIR}/usr/lib
|
|
mv ${DESTDIR}/python3/usr/lib/python* ${PKGDESTDIR}/usr/lib
|
|
}
|
|
}
|
|
|
|
pygobject-devel_package() {
|
|
depends="libgirepository-devel
|
|
py2cairo-devel>=1.10.0_2
|
|
pycairo-devel>=1.10.0_2
|
|
py3gobject>=${version}_${revision}
|
|
pygobject>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
pygobject_package() {
|
|
pycompile_module="gi pygtkcompat"
|
|
depends="py2cairo>=1.10.0_2"
|
|
pkg_install() {
|
|
rm -rf ${DESTDIR}/python3
|
|
vmove all
|
|
}
|
|
}
|