[arch-commits] Commit in python-pysqlite/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 20:49:02 UTC 2018


    Date: Friday, November 9, 2018 @ 20:49:02
  Author: foutrelis
Revision: 404420

archrelease: copy trunk to community-staging-x86_64

Added:
  python-pysqlite/repos/community-staging-x86_64/
  python-pysqlite/repos/community-staging-x86_64/PKGBUILD
    (from rev 404419, python-pysqlite/trunk/PKGBUILD)
  python-pysqlite/repos/community-staging-x86_64/setup.cfg
    (from rev 404419, python-pysqlite/trunk/setup.cfg)

-----------+
 PKGBUILD  |   38 ++++++++++++++++++++++++++++++++++++++
 setup.cfg |    5 +++++
 2 files changed, 43 insertions(+)

Copied: python-pysqlite/repos/community-staging-x86_64/PKGBUILD (from rev 404419, python-pysqlite/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 20:49:02 UTC (rev 404420)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pysqlite
+pkgname=python2-pysqlite
+pkgver=2.8.3
+pkgrel=2
+pkgdesc="A Python DB-API 2.0 interface for the SQLite embedded relational database engine"
+license=('custom')
+arch=('x86_64')
+url="https://pypi.python.org/pypi/pysqlite"
+depends=('python2' 'sqlite')
+conflicts=('python-pysqlite<=2.8.1-1')
+replaces=('python-pysqlite<=2.8.1-1')
+source=("https://pypi.io/packages/source/p/pysqlite/pysqlite-${pkgver}.tar.gz"
+        setup.cfg)
+sha256sums=('17d3335863e8cf8392eea71add33dab3f96d060666fe68ab7382469d307f4490'
+            '37eeb06fdb89d5dd7674f8f8094614c21468b6b469169b1db5981632aa573dca')
+
+prepare() {
+  cp "${srcdir}/setup.cfg" pysqlite-${pkgver}
+}
+
+build() {
+  cd pysqlite-${pkgver}
+  python2 setup.py build
+}
+
+check() {
+  cd pysqlite-${pkgver}/build/lib.*/
+  python2 -c "from pysqlite2 import test; test.test()"
+}
+
+package_python2-pysqlite() {
+  cd pysqlite-${pkgver}
+  python2 setup.py install -O1 --root="${pkgdir}"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  rm -r "${pkgdir}/usr/pysqlite2-doc"
+}

Copied: python-pysqlite/repos/community-staging-x86_64/setup.cfg (from rev 404419, python-pysqlite/trunk/setup.cfg)
===================================================================
--- community-staging-x86_64/setup.cfg	                        (rev 0)
+++ community-staging-x86_64/setup.cfg	2018-11-09 20:49:02 UTC (rev 404420)
@@ -0,0 +1,5 @@
+[build_ext]
+define=
+include_dirs=/usr/include
+library_dirs=/usr/lib
+libraries=sqlite3


More information about the arch-commits mailing list