diff options
Diffstat (limited to 'main/py-gobject3')
-rw-r--r-- | main/py-gobject3/APKBUILD | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/main/py-gobject3/APKBUILD b/main/py-gobject3/APKBUILD index e0d8da223a..eb7893ed38 100644 --- a/main/py-gobject3/APKBUILD +++ b/main/py-gobject3/APKBUILD @@ -1,15 +1,15 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=py-gobject3 pkgver=3.24.1 -pkgrel=0 +pkgrel=1 pkgdesc="Python bindings for the GObject library" url="http://www.pygtk.org/" arch="all" license="GPL" -depends="py-cairo" -depends_dev="libffi-dev glib-dev" -makedepends="$depends_dev python2-dev py-cairo-dev gobject-introspection-dev - python3-dev py3-cairo-dev gnome-common automake autoconf libtool" +depends="" +depends_dev="python3-dev python2-dev" +makedepends="$depends_dev py2-cairo-dev py3-cairo-dev gobject-introspection-dev + libffi-dev glib-dev gnome-common automake autoconf libtool" install= subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3 $pkgname-dev" source="http://ftp.gnome.org/pub/GNOME/sources/pygobject/${pkgver%.*}/pygobject-$pkgver.tar.xz" @@ -30,17 +30,10 @@ package() { mkdir -p "$pkgdir" } -dev() { - local pkgdir="${pkgdir%/*}/py2-gobject3" - default_dev -} - _build() { local python="$1" export PYTHON=$python cd "$srcdir"/$python - # do not include headers with py3 - [ "$python" = "python3" ] && local _no_dev="--without-common" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -48,18 +41,17 @@ _build() { --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ - --enable-compile-warnings=minimum \ - $_no_dev + --enable-compile-warnings=minimum make } _py2() { - depends="${depends//py-/py2-}" + depends="py2-cairo" _py python2 } _py3() { - depends="${depends//py-/py3-}" + depends="py3-cairo" _py python3 } @@ -67,8 +59,10 @@ _py() { local python="$1" pkgdesc="$pkgdesc (for $python)" install_if="$pkgname=$pkgver-r$pkgrel $python" - cd "$srcdir"/"$python" - make DESTDIR="$subpkgdir" install + cd "$srcdir/$python" + make DESTDIR="$pkgdir" install + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/${python}.* "$subpkgdir"/usr/lib/ } sha512sums="f35968ab12b872c85af6b2410cadedcf9fa7e17352a40f3dc557c86203aa1c38753710aab9ce55e986ee2c98b64e14123c65083655445e993d0b53431db6dc93 pygobject-3.24.1.tar.xz" |