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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:42:11 UTC 2019


    Date: Friday, October 25, 2019 @ 15:42:10
  Author: felixonmars
Revision: 519164

archrelease: copy trunk to community-staging-any

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

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

Copied: python-blessings/repos/community-staging-any/PKGBUILD (from rev 519162, python-blessings/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:42:10 UTC (rev 519164)
@@ -0,0 +1,36 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+# Contributor: Andrey Mikhaylenko <neithere at gmail dot com>
+
+pkgbase=python-blessings
+pkgname=(python-blessings python2-blessings)
+_pkgname=blessings
+pkgver=1.7
+pkgrel=3
+pkgdesc="A thin, practical wrapper around terminal coloring, styling, and positioning"
+url="https://github.com/erikrose/blessings"
+arch=('any')
+license=('MIT')
+depends=('python')
+makedepends=('python-distribute' 'python2-distribute')
+#options=(!emptydirs)
+source=("https://files.pythonhosted.org/packages/source/b/$_pkgname/$_pkgname-$pkgver.tar.gz")
+md5sums=('38555a2bba0ace706aec58444368e022')
+
+prepare() {
+  cd "$srcdir"
+  cp -r blessings-$pkgver blessings2-$pkgver
+}
+
+package_python-blessings() {
+  cd "$srcdir/blessings-$pkgver"
+  python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python-blessings/LICENSE"
+}
+
+package_python2-blessings() {
+  depends=('python2')
+  cd "$srcdir/blessings2-$pkgver"
+  python2 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/python2-blessings/LICENSE"
+}
+



More information about the arch-commits mailing list