Subject: [alpine-devel] new abuild: py-xmpppy

From: Francesco <[email-masked]>
Date: Sun, 9 Jan 2011 23:39:58 +0100

new abuild.

Please review and commit.
Thanks!

:: Francesco Colista
:: Email : [email-masked]
:: Jabber: [email-masked]
From 83a68cd1ffeb4fc7277eb50d204ec648e77be021 Mon Sep 17 00:00:00 2001
From: Francesco Colista <[email-masked]>
Date: Sun, 9 Jan 2011 22:32:33 +0000
Subject: [PATCH 1/2] testing/py-xmpppy new abuild

---
 testing/py-xmpppy/APKBUILD |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 testing/py-xmpppy/APKBUILD

diff --git a/testing/py-xmpppy/APKBUILD b/testing/py-xmpppy/APKBUILD
new file mode 100644
index 0000000..a9a3b01
--- /dev/null
+++ b/testing/py-xmpppy/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Francesco Colista <[email-masked]>
+# Maintainer: Francesco Colista <[email-masked]>
+pkgname=py-xmpppy
+_pkgname=xmpppy
+pkgver=0.4.1
+pkgrel=0
+pkgdesc="A Python library to provide easy scripting with Jabber"
+url="http://xmpppy.sourceforge.net/"
+arch="all"
+license="GPL"
+depends="python"
+depends_dev=
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://downloads.sourceforge.net/sourceforge/xmpppy/$_pkgname-$pkgver.tar.gz"
+
+_builddir=$srcdir/$_pkgname-$pkgver
+
+build() {
+	cd "$_builddir"
+	python setup.py build
+}
+
+package() {
+	cd "$_builddir"
+	mkdir -p "$pkgdir"/usr/lib/python2.6/site-packages
+	python setup.py install --root="$pkgdir"
+}
+
+md5sums="ca36d685643f2c56ab07323a09ece9e4  xmpppy-0.4.1.tar.gz"
-- 
1.7.3.5

---

From: Natanael Copa <[email-masked]>
Date: Mon, 10 Jan 2011 13:58:10 +0100

On Sun, 9 Jan 2011 23:39:58 +0100

> +++ b/testing/py-xmpppy/APKBUILD

py- prefix. Good!

> +url="http://xmpppy.sourceforge.net/"

Its a noarch since here are no arch specific binaries shipped.

> +makedepends="$depends_dev"

Seems like it needs python-dev in makedepends.

> +	python setup.py install --root="$pkgdir"

Separate build() and package(). Good!

> +md5sums="ca36d685643f2c56ab07323a09ece9e4  xmpppy-0.4.1.tar.gz"

I applied and fixed the above things.

Thanks!
-nc

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---