aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-gtk
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-12 18:08:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-12 18:08:35 +0000
commit1c5a135c1a6042fc4485df31fcbbaa5834c07d75 (patch)
tree8a17d249bef4bf374c779fa05aaa1022cd117257 /main/py-gtk
parent44aa84712a10e37506217e1d18134a567b96beb9 (diff)
downloadaports-1c5a135c1a6042fc4485df31fcbbaa5834c07d75.tar.bz2
aports-1c5a135c1a6042fc4485df31fcbbaa5834c07d75.tar.xz
main/py-gtk: moved from testing
Diffstat (limited to 'main/py-gtk')
-rw-r--r--main/py-gtk/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/py-gtk/APKBUILD b/main/py-gtk/APKBUILD
new file mode 100644
index 0000000000..5725ea0b34
--- /dev/null
+++ b/main/py-gtk/APKBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=py-gtk
+pkgver=2.17.0
+pkgrel=1
+pkgdesc="Python bindings for the GTK widget set"
+url="http://www.pygtk.org/"
+license="LGPL"
+depends="py-cairo"
+makedepends="libglade-dev py-cairo-dev py-gobject-dev python-dev"
+source="http://ftp.gnome.org/pub/gnome/sources/pygtk/2.17/pygtk-$pkgver.tar.bz2"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-demo"
+
+_builddir="$srcdir"/pygtk-$pkgver
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -m644 gtk/gtk-extrafuncs.defs ""$pkgdir"/usr/share/pygtk/2.0/defs/" || return 1
+}
+
+demo() {
+ pkgdesc="Demonstration of pygtk"
+ depends="py-gtk"
+ mkdir -p "$subpkgdir"/usr/bin "$subpkgdir"/usr/lib/pygtk/2.0
+ mv "$pkgdir"/usr/bin/pygtk-demo "$subpkgdir"/usr/bin/
+ mv "$pkgdir"/usr/lib/pygtk/2.0/*demo* \
+ "$subpkgdir"/usr/lib/pygtk/2.0/
+}
+md5sums="43d704343d7ca04a6e4ddd4fa73a3c55 pygtk-2.17.0.tar.bz2"