diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-24 09:27:38 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-04-24 09:27:38 +0000 |
commit | 1caa397e4cf84a8a5e7ff91755c6ba692e368e1a (patch) | |
tree | ad2a1a977c7eb286bb06641ea5317d7b362af3ff /main/py-gobject | |
parent | 040819a5b25c3c9f0109013cb2c677f888d4e62e (diff) | |
download | aports-1caa397e4cf84a8a5e7ff91755c6ba692e368e1a.tar.bz2 aports-1caa397e4cf84a8a5e7ff91755c6ba692e368e1a.tar.xz |
main/py-gobject: fix mdepends, modernize APKBUILD, add check()
Diffstat (limited to 'main/py-gobject')
-rw-r--r-- | main/py-gobject/APKBUILD | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/main/py-gobject/APKBUILD b/main/py-gobject/APKBUILD index d7e04c658b..b5fa9b8b34 100644 --- a/main/py-gobject/APKBUILD +++ b/main/py-gobject/APKBUILD @@ -1,27 +1,24 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=py-gobject pkgver=2.28.6 -pkgrel=5 +pkgrel=6 pkgdesc="Python bindings for the GObject library" url="http://www.pygtk.org/" arch="all" license="GPL" -depends= -depends_dev="libffi-dev glib-dev python2-dev" -makedepends="$depends_dev py-cairo-dev" -install= +makedepends="libffi-dev glib-dev python2-dev py2-cairo-dev" subpackages="$pkgname-dev $pkgname-doc" +options="!check" #*** No rule to make target 'Regress-1.0.typelib', needed by 'check-local'. source="http://ftp.gnome.org/pub/GNOME/sources/pygobject/${pkgver%.*}/pygobject-$pkgver.tar.bz2" +builddir="$srcdir"/pygobject-$pkgver -_builddir="$srcdir"/pygobject-$pkgver prepare() { - cd "$_builddir" + cd "$builddir" update_config_sub || return 1 - # apply patches here } build() { - cd "$_builddir" + cd "$builddir" CFLAGS="$CFLAGS -D_GNU_SOURCE" \ ./configure \ --build=$CBUILD \ @@ -35,9 +32,14 @@ build() { make || return 1 } +check() { + cd "$builddir" + make check +} + package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install } -md5sums="a43d783228dd32899e6908352b8308f3 pygobject-2.28.6.tar.bz2" +sha512sums="b29da45a45b3099c1153978cc507fcea156e66fd1dbadb565c19b201b29a96414cba819507993cfc6190916a90c586b6cca2b777e21b72be929711462a852b88 pygobject-2.28.6.tar.bz2" |