diff options
author | root <root@rshg054.dnsready.net> | 2011-12-16 23:14:53 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-16 23:14:53 +0000 |
commit | 492f7c22a61fdb0488000da9f66d68e11bb43918 (patch) | |
tree | 4186fa7bc3f8d6b6e8bbf984b036a5478d63272f /testing | |
parent | ac25f0b5aaf7aff394a8df695be995ec8463e264 (diff) |
Fri Dec 16 23:14:53 UTC 2011
Diffstat (limited to 'testing')
-rw-r--r-- | testing/nilfs-utils/PKGBUILD | 26 | ||||
-rw-r--r-- | testing/twisted/PKGBUILD | 34 | ||||
-rw-r--r-- | testing/twisted/twisted.install | 11 |
3 files changed, 71 insertions, 0 deletions
diff --git a/testing/nilfs-utils/PKGBUILD b/testing/nilfs-utils/PKGBUILD new file mode 100644 index 000000000..51022ac0f --- /dev/null +++ b/testing/nilfs-utils/PKGBUILD @@ -0,0 +1,26 @@ +# $Id: PKGBUILD 145060 2011-12-15 22:33:56Z ibiru $ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Geoffroy Carrier <geoffroy.carrier@koon.fr> +pkgname=nilfs-utils +pkgver=2.1.0 +pkgrel=1 +pkgdesc="A log-structured file system supporting continuous snapshotting (userspace utils)" +arch=('i686' 'x86_64') +url="http://www.nilfs.org/" +license=('GPL2' 'LGPL2.1') +backup=('etc/nilfs_cleanerd.conf') +depends=('util-linux-ng') +options=(!libtool) +source=(http://www.nilfs.org/download/$pkgname-$pkgver.tar.bz2) +md5sums=('738f7bee062051c14dcff444bb17ada7') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --libdir=/lib + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install LDCONFIG=/bin/true +} diff --git a/testing/twisted/PKGBUILD b/testing/twisted/PKGBUILD new file mode 100644 index 000000000..84d918a8c --- /dev/null +++ b/testing/twisted/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 145058 2011-12-15 22:26:04Z ibiru $ +# Maintainer : Ionut Biru <ibiru@archlinux.org> +# Contributor: Juergen Hoetzel <juergen@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> + +pkgname=twisted +pkgver=11.1.0 +pkgrel=1 +pkgdesc="Asynchronous networking framework written in Python." +arch=('i686' 'x86_64') +url="http://twistedmatrix.com/" +license=('MIT') +depends=('python2' 'pycrypto' 'zope-interface') +optdepends=('python2-pyopenssl' + 'python-soappy:for twisted.web.soap') +install=twisted.install +source=(http://twistedmatrix.com/Releases/Twisted/${pkgver%.*}/Twisted-$pkgver.tar.bz2) +md5sums=('972f3497e6e19318c741bf2900ffe31c') + +build() { + cd "$srcdir/Twisted-$pkgver" + python2 setup.py build +} + +package() { + cd "$srcdir/Twisted-$pkgver" + python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + + sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + -i "$pkgdir"/usr/lib/python2.7/site-packages/twisted/trial/test/scripttest.py + sed -e 's|#!/usr/bin/env python|#!/usr/bin/env python2|' \ + -i "$pkgdir"/usr/lib/python2.7/site-packages/twisted/mail/test/pop3testserver.py +} diff --git a/testing/twisted/twisted.install b/testing/twisted/twisted.install new file mode 100644 index 000000000..8e93ffd3c --- /dev/null +++ b/testing/twisted/twisted.install @@ -0,0 +1,11 @@ +post_install() { + python2 -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' >/dev/null 2>&1 || return 1 +} + +post_upgrade() { + post_install +} + +post_remove() { + find /usr/lib/python2.7/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f +} |