[arch-commits] Commit in brotli/repos/community-x86_64 (PKGBUILD PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Tue Sep 15 14:52:10 UTC 2020


    Date: Tuesday, September 15, 2020 @ 14:52:09
  Author: anthraxx
Revision: 707146

archrelease: copy trunk to community-x86_64

Added:
  brotli/repos/community-x86_64/PKGBUILD
    (from rev 707145, brotli/trunk/PKGBUILD)
Deleted:
  brotli/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |  147 +++++++++++++++++++++++++++++--------------------------------
 1 file changed, 72 insertions(+), 75 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-09-15 14:52:04 UTC (rev 707145)
+++ PKGBUILD	2020-09-15 14:52:09 UTC (rev 707146)
@@ -1,75 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Lex Black <autumn-wind at web dot de>
-# Contributor: TingPing <tingping at tingping.se>
-# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
-
-pkgbase=brotli
-pkgname=('brotli' 'python-brotli' 'python2-brotli' 'brotli-testdata')
-pkgver=1.0.7
-pkgrel=3
-pkgdesc='Brotli compression library'
-arch=('x86_64')
-license=('MIT')
-url='https://github.com/google/brotli'
-depends=('gcc-libs')
-makedepends=('cmake' 'python-setuptools' 'python2-setuptools')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/google/$pkgbase/archive/v$pkgver.tar.gz")
-sha512sums=('a82362aa36d2f2094bca0b2808d9de0d57291fb3a4c29d7c0ca0a37e73087ec5ac4df299c8c363e61106fccf2fe7f58b5cf76eb97729e2696058ef43b1d3930a')
-
-prepare() {
-  cp -a brotli-$pkgver{,-py2}
-  mkdir -p build
-}
-
-build() {
-  cd "$srcdir"/brotli-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/brotli-$pkgver-py2
-  python2 setup.py build
-
-  cd "$srcdir"/build
-  cmake ../brotli-$pkgver -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="/usr/lib"
-  make
-}
-
-check() {
-  cd brotli-$pkgver
-  make test
-  python setup.py test
-  cd "$srcdir"/brotli-$pkgver-py2
-  python2 setup.py test
-}
-
-package_brotli() {
-  cd build
-  make DESTDIR="$pkgdir" install
-  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python-brotli() {
-  depends=('python')
-
-  cd brotli-$pkgver
-
-  python setup.py install --skip-build -O1 --root="$pkgdir"
-  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-brotli() {
-  depends=('python2')
-
-  cd brotli-$pkgver-py2
-
-  python2 setup.py install --skip-build -O1 --root="$pkgdir"
-  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_brotli-testdata() {
-  depends=()
-
-  cd brotli-$pkgver
-  install -dm755 "$pkgdir"/usr/share/brotli
-  cp -a tests/testdata "$pkgdir"/usr/share/brotli/
-  install -D -m644 "$srcdir"/brotli-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: brotli/repos/community-x86_64/PKGBUILD (from rev 707145, brotli/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-09-15 14:52:09 UTC (rev 707146)
@@ -0,0 +1,72 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Lex Black <autumn-wind at web dot de>
+# Contributor: TingPing <tingping at tingping.se>
+# Contributor: Guillaume Horel <guillaume.horel at gmail.com>
+
+pkgbase=brotli
+pkgname=('brotli' 'python-brotli' 'brotli-testdata')
+_gitcommit=e61745a6b7add50d380cfd7d3883dd6c62fc2c71
+pkgver=1.0.9
+pkgrel=1
+pkgdesc='Generic-purpose lossless compression algorithm'
+url='https://github.com/google/brotli'
+arch=('x86_64')
+license=('MIT')
+makedepends=('git' 'glibc' 'gcc-libs' 'cmake' 'python-setuptools')
+source=(${pkgname}::"git+${url}#commit=${_gitcommit}")
+sha512sums=('SKIP')
+
+pkgver() {
+  cd ${pkgbase}
+  git describe --tags --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+  cd ${pkgbase}
+  python setup.py build
+  cmake -B build \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+	-DBUILD_SHARED_LIBS=True
+  make -C build VERBOSE=1
+}
+
+check() {
+  cd ${pkgbase}
+  make test
+  python setup.py test
+}
+
+package_brotli() {
+  depends=('gcc-libs' 'glibc')
+  provides=(libbrotlicommon.so libbrotlidec.so libbrotlienc.so)
+
+  cd ${pkgbase}
+  make -C build DESTDIR="$pkgdir" install
+  local man;
+  for man in docs/*.?; do
+    install -Dm 644 "$man" "$pkgdir/usr/share/man/man${man##*.}/${man##*/}"
+  done
+  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+package_python-brotli() {
+  pkgdesc+=' - python library'
+  depends=('python' 'glibc' 'gcc-libs')
+
+  cd ${pkgbase}
+  python setup.py install --skip-build -O1 --root="$pkgdir"
+  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+package_brotli-testdata() {
+  pkgdesc+=' - test data'
+  depends=()
+
+  cd ${pkgbase}
+  install -dm755 "$pkgdir"/usr/share/brotli
+  cp -a tests/testdata "$pkgdir"/usr/share/brotli/
+  install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}


More information about the arch-commits mailing list