[arch-commits] Commit in python-zopfli/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Tue Nov 10 04:03:50 UTC 2020
Date: Tuesday, November 10, 2020 @ 04:03:49
Author: felixonmars
Revision: 748427
archrelease: copy trunk to community-staging-x86_64
Added:
python-zopfli/repos/community-staging-x86_64/
python-zopfli/repos/community-staging-x86_64/PKGBUILD
(from rev 748425, python-zopfli/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-zopfli/repos/community-staging-x86_64/PKGBUILD (from rev 748425, python-zopfli/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2020-11-10 04:03:49 UTC (rev 748427)
@@ -0,0 +1,38 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+_name=zopfli
+pkgname=python-zopfli
+pkgver=0.1.7
+pkgrel=2
+pkgdesc="Python bindings to zopfli"
+arch=('x86_64')
+url="https://github.com/obp/py-zopfli"
+license=('Apache')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.zip")
+sha512sums=('f1dbbea0b14f6c6a71ef010f6c26b6177be4219d91ddd88e55c1166abb1901e162670559e4af4fc1f12d60caf66f94e0c73228a6379491cfbc084d9a2e231565')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ python setup.py test
+}
+
+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