[arch-commits] Commit in python-pickleshare/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Fri Oct 25 16:34:37 UTC 2019
Date: Friday, October 25, 2019 @ 16:34:36
Author: foutrelis
Revision: 519474
archrelease: copy trunk to community-staging-any
Added:
python-pickleshare/repos/community-staging-any/
python-pickleshare/repos/community-staging-any/PKGBUILD
(from rev 519473, python-pickleshare/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-pickleshare/repos/community-staging-any/PKGBUILD (from rev 519473, python-pickleshare/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:34:36 UTC (rev 519474)
@@ -0,0 +1,38 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-pickleshare
+pkgname=(python-pickleshare python2-pickleshare)
+pkgver=0.7.5
+pkgrel=2
+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