[arch-commits] Commit in python-lazy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 16:02:48 UTC 2019
Date: Friday, October 25, 2019 @ 16:02:45
Author: felixonmars
Revision: 519339
archrelease: copy trunk to community-staging-any
Added:
python-lazy/repos/community-staging-any/
python-lazy/repos/community-staging-any/PKGBUILD
(from rev 519337, python-lazy/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python-lazy/repos/community-staging-any/PKGBUILD (from rev 519337, python-lazy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 16:02:45 UTC (rev 519339)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-lazy
+pkgver=1.4
+pkgrel=2
+pkgdesc="Lazy attributes for Python objects"
+url="https://github.com/stefanholek/lazy"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/stefanholek/lazy/archive/$pkgver.tar.gz")
+sha512sums=('2a735b1436d3ebc76791645631cfcf54f1e332fd365c317bee92498b10397ec8206b271ae74427cae02985808a843eb98720c91e62dce93bb75702205da161bc')
+
+build() {
+ cd lazy-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd lazy-$pkgver
+ python setup.py test
+}
+
+package() {
+ cd lazy-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list