[arch-commits] Commit in python-sqlparse/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Dec 25 17:43:22 UTC 2016
Date: Sunday, December 25, 2016 @ 17:43:22
Author: foutrelis
Revision: 202135
archrelease: copy trunk to community-staging-any
Added:
python-sqlparse/repos/community-staging-any/
python-sqlparse/repos/community-staging-any/PKGBUILD
(from rev 202134, python-sqlparse/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-sqlparse/repos/community-staging-any/PKGBUILD (from rev 202134, python-sqlparse/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2016-12-25 17:43:22 UTC (rev 202135)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer:
+# Contributor: Jonathan Kotta <jpkotta AT gmail DOT com>
+
+pkgname=('python-sqlparse' 'python2-sqlparse')
+pkgver=0.2.2
+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=("https://pypi.python.org/packages/48/e4/ecd908ef40a9d0e78fc40f3abd2f329dd96b82402fee07f14dbf69948f1b/sqlparse-$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/andialbrecht/sqlparse/archive/$pkgver.tar.gz")
+md5sums=('56217ed588ad49315b8d51e83d187f0a')
+
+prepare() {
+ cp -a sqlparse-$pkgver sqlparse2-$pkgver
+}
+
+package_python-sqlparse() {
+ depends=('python')
+
+ cd sqlparse-$pkgver/
+ python setup.py install --prefix=/usr --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-sqlparse() {
+ depends=('python2')
+
+ cd sqlparse2-$pkgver/
+ python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ mv "$pkgdir"/usr/bin/sqlformat{,2}
+}
More information about the arch-commits
mailing list