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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:48:08 UTC 2020


    Date: Monday, November 9, 2020 @ 15:48:08
  Author: felixonmars
Revision: 747152

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pickleshare/repos/community-staging-any/PKGBUILD (from rev 747150, python-pickleshare/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:48:08 UTC (rev 747152)
@@ -0,0 +1,37 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-pickleshare
+pkgname=(python-pickleshare python2-pickleshare)
+pkgver=0.7.5
+pkgrel=4
+pkgdesc="File system based database that uses python pickles"
+arch=('any')
+url="https://github.com/pickleshare/pickleshare"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'python2-setuptools' 'python2-pathlib')
+source=("https://files.pythonhosted.org/packages/source/p/pickleshare/pickleshare-$pkgver.tar.gz")
+md5sums=('44ab782615894a812ab96669a122a634')
+
+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-pathlib')
+  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