summaryrefslogtreecommitdiff
path: root/~mtjm
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-01-29 23:15:03 +0000
committerroot <root@rshg054.dnsready.net>2012-01-29 23:15:03 +0000
commit39711f3264d3b9de2ff6392649274d6333932457 (patch)
treede0577b44ca853064f52a0df25ee9f22efd756bc /~mtjm
parent738e6c6d93b4c7118e49b38c610abed8b7f7d55a (diff)
Sun Jan 29 23:15:02 UTC 2012
Diffstat (limited to '~mtjm')
-rw-r--r--~mtjm/python-getmediumurl/PKGBUILD27
-rw-r--r--~mtjm/python-urlreader/PKGBUILD27
-rw-r--r--~mtjm/python3-lxml/PKGBUILD38
3 files changed, 92 insertions, 0 deletions
diff --git a/~mtjm/python-getmediumurl/PKGBUILD b/~mtjm/python-getmediumurl/PKGBUILD
new file mode 100644
index 000000000..bacc1c0f1
--- /dev/null
+++ b/~mtjm/python-getmediumurl/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
+
+_pkgname=GetMediumURL
+pkgname=python-getmediumurl
+pkgver=0.0a5
+pkgrel=1
+pkgdesc="A package for getting URLs of media files from some websites"
+arch=("any")
+url="http://savannah.nongnu.org/projects/getmediumurl/"
+license=('AGPL')
+depends=('python' 'python3-lxml' 'python-urlreader' 'python-distribute')
+checkdepends=('python2') # due to my laziness
+options=(!emptydirs)
+source=("http://download.savannah.gnu.org/releases/getmediumurl/${_pkgname}-${pkgver}.tar.gz")
+md5sums=("0d3660e178bd58549d7a5718f8e39de2")
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ LANG=en_US.UTF-8 python setup.py test
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ LANG=en_US.UTF-8 python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/~mtjm/python-urlreader/PKGBUILD b/~mtjm/python-urlreader/PKGBUILD
new file mode 100644
index 000000000..4ffe93c6f
--- /dev/null
+++ b/~mtjm/python-urlreader/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Michał Masłowski <mtjm@mtjm.eu>
+
+_pkgname=URLReader
+pkgname=python-urlreader
+pkgver=0.0a1
+pkgrel=1
+pkgdesc="Simple package for cached URL fetching"
+arch=("any")
+url="http://hg.mtjm.eu/urlreader/"
+license=('AGPL')
+depends=('python' 'python-distribute')
+checkdepends=('python2') # due to my laziness
+options=(!emptydirs)
+source=("http://pypi.python.org/packages/source/U/URLReader/URLReader-${pkgver}.tar.gz")
+md5sums=("5a96519a24099aae05fc0612d9cfd650")
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ LANG=en_US.UTF-8 python setup.py test
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ LANG=en_US.UTF-8 python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/~mtjm/python3-lxml/PKGBUILD b/~mtjm/python3-lxml/PKGBUILD
new file mode 100644
index 000000000..5d4effa47
--- /dev/null
+++ b/~mtjm/python3-lxml/PKGBUILD
@@ -0,0 +1,38 @@
+# Based on python-lxml.
+# $Id: PKGBUILD 146500 2012-01-12 05:14:02Z eric $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Angel 'angvp' Velasquez <angvp[at]archlinux.com.ve>
+# Contributor: William Rea <sillywilly@gmail.com>
+# Contributor: Guillem Rieu <guillemr@gmx.net>
+
+pkgname=python3-lxml
+pkgver=2.3.3
+pkgrel=1
+pkgdesc="Python 3 binding for the libxml2 and libxslt libraries"
+arch=('i686' 'x86_64' 'mips64el')
+license=('BSD' 'custom')
+url="http://lxml.de/"
+depends=('python' 'libxslt')
+conflicts=('lxml')
+source=(http://pypi.python.org/packages/source/l/lxml/lxml-${pkgver}.tar.gz{,.asc})
+md5sums=('a7825793c69d004f388ec6600bad7a6f'
+ '5c4b1a05f6e46a4dd7ebed8b5ad9e32e')
+
+check() {
+ cd "${srcdir}"/lxml-$pkgver
+ make test
+}
+
+package() {
+ cd "${srcdir}"/lxml-$pkgver
+
+ python setup.py install --root="${pkgdir}" --optimize=1
+
+ install -Dm644 LICENSES.txt \
+ "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
+ install -Dm644 doc/licenses/BSD.txt \
+ "${pkgdir}"/usr/share/licenses/$pkgname/BSD.txt
+ install -Dm644 doc/licenses/elementtree.txt \
+ "${pkgdir}"/usr/share/licenses/$pkgname/elementtree.txt
+}