[arch-commits] Commit in python-sqlparse/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sat Sep 19 16:17:00 UTC 2015
Date: Saturday, September 19, 2015 @ 18:17:00
Author: foutrelis
Revision: 140922
archrelease: copy trunk to community-staging-any
Added:
python-sqlparse/repos/community-staging-any/
python-sqlparse/repos/community-staging-any/PKGBUILD
(from rev 140921, python-sqlparse/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-sqlparse/repos/community-staging-any/PKGBUILD (from rev 140921, python-sqlparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 16:17:00 UTC (rev 140922)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer:
+# Contributor: Jonathan Kotta <jpkotta AT gmail DOT com>
+
+pkgname=('python-sqlparse' 'python2-sqlparse')
+_libname=sqlparse
+pkgver=0.1.16
+pkgrel=2
+pkgdesc='Non-validating SQL parser for Python'
+arch=('any')
+url=https://github.com/andialbrecht/sqlparse
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=(http://pypi.python.org/packages/source/s/$_libname/$_libname-$pkgver.tar.gz)
+md5sums=('370962a307ebaaa70a28b6b0ccb53980')
+
+prepare() {
+ cp -a $_libname-$pkgver ${_libname}2-$pkgver
+}
+
+package_python-sqlparse() {
+ depends=('python')
+
+ cd ${_libname}-$pkgver/
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-sqlparse() {
+ depends=('python2')
+
+ cd ${_libname}2-$pkgver/
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ mv "$pkgdir"/usr/bin/sqlformat{,2}
+}
More information about the arch-commits
mailing list