Date: Thursday, April 6, 2023 @ 17:14:54
Author: felixonmars
Revision: 1439957
archrelease: copy trunk to community-staging-x86_64
Added:
python-brotlicffi/repos/community-staging-x86_64/
python-brotlicffi/repos/community-staging-x86_64/PKGBUILD
(from rev 1439956, python-brotlicffi/trunk/PKGBUILD)
----------+
PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)
Copied: python-brotlicffi/repos/community-staging-x86_64/PKGBUILD (from rev
1439956, python-brotlicffi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 17:14:54 UTC (rev 1439957)
@@ -0,0 +1,39 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+
+pkgname=python-brotlicffi
+pkgver=1.0.9.2
+pkgrel=4
+pkgdesc='Python bindings to the Brotli compression library'
+arch=(x86_64)
+url=https://github.com/python-hyper/brotlicffi
+license=(MIT)
+depends=(
+ brotli
+ python
+ python-cffi
+)
+makedepends=(
+ git
+ python-setuptools
+)
+_tag=de7ee050f809448735f0f05a6379383b8cf4554f
+source=(git+https://github.com/python-hyper/brotlicffi.git#tag=${_tag})
+b2sums=(SKIP)
+
+pkgver() {
+ cd brotlicffi
+ git describe --tags | sed 's/^v//'
+}
+
+build() {
+ cd brotlicffi
+ USE_SHARED_BROTLI=1 python setup.py build
+}
+
+package() {
+ cd brotlicffi
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-brotlicffi
+}
+
+# vim: ts=2 sw=2 et: