[arch-commits] Commit in python-flufl.i18n/repos (2 files)

David Runge dvzrv at archlinux.org
Fri Jan 10 21:43:41 UTC 2020


    Date: Friday, January 10, 2020 @ 21:43:41
  Author: dvzrv
Revision: 551812

archrelease: copy trunk to community-any

Added:
  python-flufl.i18n/repos/community-any/
  python-flufl.i18n/repos/community-any/PKGBUILD
    (from rev 551811, python-flufl.i18n/trunk/PKGBUILD)

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

Copied: python-flufl.i18n/repos/community-any/PKGBUILD (from rev 551811, python-flufl.i18n/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-01-10 21:43:41 UTC (rev 551812)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=flufl.i18n
+pkgname=python-flufl.i18n
+pkgver=2.0.2
+pkgrel=2
+pkgdesc="A high level API for internationalization"
+arch=('any')
+url="https://flufli18n.readthedocs.io/en/latest/"
+license=('Apache')
+depends=('python-atpublic')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+provides=('python-flufl-i18n')
+replaces=('python-flufl-i18n')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('05d9283bed456ee8d48704dc595f514e13b0c74096df177ed49bf178987baeee014ddc4331cc7d36edffbee1dcb58fcae152c2cb317b7ce73d9630864b98f1cd')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH="build:${PYTHONPATH}"
+  pytest -v
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list