[arch-commits] Commit in python-pickleshare/repos (2 files)

Kyle Keen kkeen at archlinux.org
Mon Oct 10 02:40:06 UTC 2016


    Date: Monday, October 10, 2016 @ 02:40:05
  Author: kkeen
Revision: 191774

archrelease: copy trunk to community-any

Added:
  python-pickleshare/repos/community-any/
  python-pickleshare/repos/community-any/PKGBUILD
    (from rev 191773, python-pickleshare/trunk/PKGBUILD)

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Copied: python-pickleshare/repos/community-any/PKGBUILD (from rev 191773, python-pickleshare/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2016-10-10 02:40:05 UTC (rev 191774)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-pickleshare
+pkgname=(python-pickleshare python2-pickleshare)
+pkgver=0.7.4
+pkgrel=1
+pkgdesc="File system based database that uses python pickles"
+arch=('any')
+url="https://github.com/pickleshare/pickleshare"
+license=('MIT')
+depends=('python' 'python-path')
+makedepends=('python-setuptools' 'python2-setuptools')
+
+source=("https://files.pythonhosted.org/packages/source/p/pickleshare/pickleshare-$pkgver.tar.gz")
+md5sums=('6a9e5dd8dfc023031f6b7b3f824cab12')
+
+prepare() {
+  cd "$srcdir"
+  cp -r pickleshare-$pkgver  python2-pickleshare-$pkgver
+}
+
+build() {
+  cd "$srcdir"
+}
+
+package_python-pickleshare() {
+  cd "$srcdir/pickleshare-$pkgver"
+  python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pickleshare() {
+  depends=('python2' 'python2-path')
+  cd "$srcdir/python2-pickleshare-$pkgver"
+  sed -i 's/env python$/env python2/' pickleshare.py
+  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=0
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+



More information about the arch-commits mailing list