[arch-commits] Commit in (3 files)

Maxime Gauduin alucryd at archlinux.org
Fri May 7 09:29:14 UTC 2021


    Date: Friday, May 7, 2021 @ 09:29:14
  Author: alucryd
Revision: 928576

add python-brotlicffi

Added:
  python-brotlicffi/
  python-brotlicffi/trunk/
  python-brotlicffi/trunk/PKGBUILD

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

Added: python-brotlicffi/trunk/PKGBUILD
===================================================================
--- python-brotlicffi/trunk/PKGBUILD	                        (rev 0)
+++ python-brotlicffi/trunk/PKGBUILD	2021-05-07 09:29:14 UTC (rev 928576)
@@ -0,0 +1,39 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-brotlicffi
+pkgver=1.0.9.2
+pkgrel=1
+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:



More information about the arch-commits mailing list