From 1785d3800f805be0074e735ec3c4b42a1cea70f0 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 25 May 2014 23:30:39 -0400 Subject: Update libre/parabolaweb-utils and dependencies --- libre/parabolaweb-utils/PKGBUILD | 11 +++++------ libre/python-django-countries/PKGBUILD | 33 +++++++++++++++++++++++++++++++ libre/python-jsmin/PKGBUILD | 35 +++++++++++++++++++++++++++++++++ libre/python-pgpdump/PKGBUILD | 17 +++++++++------- libre/python2-django-countries/PKGBUILD | 32 ------------------------------ libre/python2-jsmin/PKGBUILD | 27 ------------------------- 6 files changed, 83 insertions(+), 72 deletions(-) create mode 100644 libre/python-django-countries/PKGBUILD create mode 100644 libre/python-jsmin/PKGBUILD delete mode 100644 libre/python2-django-countries/PKGBUILD delete mode 100644 libre/python2-jsmin/PKGBUILD diff --git a/libre/parabolaweb-utils/PKGBUILD b/libre/parabolaweb-utils/PKGBUILD index 69ae3fbd3..cd81c83de 100644 --- a/libre/parabolaweb-utils/PKGBUILD +++ b/libre/parabolaweb-utils/PKGBUILD @@ -7,10 +7,10 @@ url="https://projects.parabolagnulinux.org/packages/parabolaweb-utils.git/" license=('GPL2') # The commit to get dependency info for -# Bump pkgrel if updating this is the only change -_parabolaweb_commit=86f1ed1ecc94a6a298eb3f690155b03bf013ca78 +# Bump pkgrel instead of pkgver if updating this is the only change +_parabolaweb_commit=724f8c309c97aa9af7f963687342e8f37e682204 -pkgrel=1 +pkgrel=2 epoch=1 arch=('any') @@ -18,6 +18,8 @@ source=( "https://projects.parabolagnulinux.org/packages/$pkgname.git/snapshot/$pkgname-$pkgver.tar.bz2" "requirements_prod-${_parabolaweb_commit}.txt::https://projects.parabolagnulinux.org/parabolaweb.git/plain/requirements_prod.txt?id=${_parabolaweb_commit}" ) +md5sums=('4543e360c0f5ecbfa3a4a51b2bd9131d' + '8bf17af4e66f552864bfdc0fd1d472f1') build() { cd "$srcdir/$pkgname-$pkgver" @@ -36,6 +38,3 @@ package_parabolaweb-dev() { pkgdesc="Depends on packages needed to develop parabolaweb" depends=($(sed -r -e 's/\s*#.*//' depends_make.txt)) } - -md5sums=('4543e360c0f5ecbfa3a4a51b2bd9131d' - '4ed35e37e52f6b8607733c692702d319') diff --git a/libre/python-django-countries/PKGBUILD b/libre/python-django-countries/PKGBUILD new file mode 100644 index 000000000..93e7c8a31 --- /dev/null +++ b/libre/python-django-countries/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Luke Shumaker + +_pkgname=django-countries +pkgname=(python-$_pkgname python2-$_pkgname) +pkgver=2.1.2 +pkgdesc="Provides a country field for Django models" +url="http://bitbucket.org/smileychris/$_pkgname/" +license=('custom:MIT') + +conflicts=($_pkgname) + +pkgrel=3 +arch=(any) +makedepends=(python{,2}-{django,setuptools}) +source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) +md5sums=('15e19fd70be1e8939f1bffcfe008e878') + +package_python-django-countries() { + depends=('python-django') + + cd "$srcdir/$_pkgname-$pkgver" + LC_ALL=en_US.UTF-8 python setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-django-countries() { + depends=('python2-django') + replaces=($_pkgname) + + cd "$srcdir/$_pkgname-$pkgver" + python2 setup.py install --root="$pkgdir/" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/libre/python-jsmin/PKGBUILD b/libre/python-jsmin/PKGBUILD new file mode 100644 index 000000000..3045ef6ae --- /dev/null +++ b/libre/python-jsmin/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Luke Shumaker + +_pkgname=jsmin +pkgname=(python-jsmin python2-jsmin) +pkgver=2.0.9 +pkgdesc="JavaScript minifier" +url="https://bitbucket.org/dcs/jsmin" +license=('MIT') + +pkgrel=1 +arch=('any') +makedepends=(python{,2}-setuptools) +source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) +md5sums=('1075751bb9499dc508cc5ff90c5088dc') + +prepare() { + cd "$srcdir/$_pkgname-$pkgver" + sed -rn 's/^#\s?//p' jsmin/__init__.py > "$srcdir"/license.txt +} + +package_python-jsmin() { + depends=('python') + + cd "$srcdir/$_pkgname-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-jsmin() { + depends=('python2') + + cd "$srcdir/$_pkgname-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +} diff --git a/libre/python-pgpdump/PKGBUILD b/libre/python-pgpdump/PKGBUILD index e65f60dfa..64fb4d291 100644 --- a/libre/python-pgpdump/PKGBUILD +++ b/libre/python-pgpdump/PKGBUILD @@ -2,26 +2,29 @@ _pkgname=pgpdump pkgname=(python-pgpdump python2-pgpdump) -pkgver=1.4 +pkgver=1.5 pkgdesc=" a Python library for parsing PGP packets" url="https://github.com/toofishes/python-pgpdump" license=('custom:BSD3') pkgrel=1 arch=(any) -makedepends=(python python2) -provides=(python2-pgpdump) -source=(http://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz) -md5sums=(b437c28ff9d6a6257a0062c0bbe2a9ec) +makedepends=('python' 'python2') +source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) +md5sums=('040a451c8e63de3e61fc5b66efa7fca5') package_python-pgpdump() { + depends=('python') + cd "$srcdir/$_pkgname-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYING } package_python2-pgpdump() { + depends=('python2') + cd "$srcdir/$_pkgname-$pkgver" python2 setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -Dm644 COPYRIGHT "$pkgdir"/usr/share/licenses/$pkgname/COPYING } diff --git a/libre/python2-django-countries/PKGBUILD b/libre/python2-django-countries/PKGBUILD deleted file mode 100644 index 36bc6a580..000000000 --- a/libre/python2-django-countries/PKGBUILD +++ /dev/null @@ -1,32 +0,0 @@ -# Maintainer: Luke Shumaker - -_pkgname=django-countries -pkgname=python2-$_pkgname -pkgver=1.5 -pkgdesc="Provides a country field for Django models" -url="http://bitbucket.org/smileychris/$_pkgname/" -license=('custom:MIT') - -replaces=($_pkgname) -conflicts=($_pkgname) - -pkgrel=3 -arch=(any) -depends=('python2-django') -makedepends=('python2-distribute') -source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) -md5sums=(6c65fcc3aa7de065a54cdb619397626d) - -build() { - cd "$srcdir/$_pkgname-$pkgver" - sed -i 's|#!/usr/bin/env python\s*$|#!/usr/bin/env python2|' setup.py */bin/*.py - # fix help message: (python2, typo) - # "python regenenerate.py" -> "python2 regenerate.py" - sed -i 's|python regen[a-z]*\.py|python2 regenerate.py|' */bin/regenerate.py -} - -package() { - cd "$srcdir/$_pkgname-$pkgver" - ./setup.py install --root="$pkgdir/" --optimize=1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} diff --git a/libre/python2-jsmin/PKGBUILD b/libre/python2-jsmin/PKGBUILD deleted file mode 100644 index 00c158324..000000000 --- a/libre/python2-jsmin/PKGBUILD +++ /dev/null @@ -1,27 +0,0 @@ -# Maintainer: Luke Shumaker - -_pkgname=jsmin -pkgname=python2-jsmin -pkgver=2.0.8 -pkgdesc="JavaScript minifier" -url="https://bitbucket.org/dcs/jsmin" -license=('MIT') - -pkgrel=1 -arch=('any') -depends=('python2') -makedepends=('python2-distribute') -source=(http://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz) - -build() { - cd "$srcdir/$_pkgname-$pkgver" - sed -rn 's/^#\s?//p' jsmin/__init__.py > license.txt -} - -package() { - cd "$srcdir/$_pkgname-$pkgver" - python2 setup.py install --root="$pkgdir" --optimize=1 - install -Dm644 license.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE -} - -md5sums=('d830a979d63bfa0bc23e11fdbc816e7d') -- cgit v1.2.3