[arch-commits] Commit in snappy/repos (3 files)

Anatol Pomozov anatolik at gemini.archlinux.org
Mon Aug 16 16:14:38 UTC 2021


    Date: Monday, August 16, 2021 @ 16:14:38
  Author: anatolik
Revision: 422280

archrelease: copy trunk to testing-x86_64

Added:
  snappy/repos/testing-x86_64/
  snappy/repos/testing-x86_64/PKGBUILD
    (from rev 422279, snappy/trunk/PKGBUILD)
  snappy/repos/testing-x86_64/snappy.pc
    (from rev 422279, snappy/trunk/snappy.pc)

-----------+
 PKGBUILD  |   66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 snappy.pc |   10 +++++++++
 2 files changed, 76 insertions(+)

Copied: snappy/repos/testing-x86_64/PKGBUILD (from rev 422279, snappy/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2021-08-16 16:14:38 UTC (rev 422280)
@@ -0,0 +1,66 @@
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Antony Male <antony dot male at geemail dot com>>
+
+pkgname=snappy
+pkgver=1.1.9
+pkgrel=1
+pkgdesc='A fast compressor/decompressor library'
+arch=('x86_64')
+url="https://google.github.io/snappy/"
+license=('BSD')
+depends=('glibc' 'gcc-libs')
+checkdepends=('zlib')
+makedepends=('cmake' 'clang' 'gtest' 'benchmark')
+source=("https://github.com/google/snappy/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        snappy.pc
+        system_gtest.patch::https://github.com/google/snappy/commit/114df35e84ad95b6d5afbcf69aa85a14ff029000.patch
+        fix_inline.patch::https://github.com/google/snappy/pull/128/commits/0c716d435abe65250100c2caea0e5126ac4e14bd.patch)
+sha256sums=('75c1fbb3d618dd3a0483bff0e26d0a92b495bbe5059c8b4f1c962b478b6e06e7'
+            'd210ff4d3ffe9a987b974a8387d967af66a93bf90d72fedce94a2159d937813e'
+            'ca96fd9e72f35ea63af82f19ff1ca93441bf5ea6b3f53ef4b974e83c249d8e3e'
+            'ad79190b274df5ddabf14eddd2bb0d9a091ee7d44e4afde89febf9a8f783fdce')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch -p1 < ../system_gtest.patch # https://github.com/google/snappy/pull/132
+  patch -p1 < ../fix_inline.patch # https://github.com/google/snappy/pull/128
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+
+  # compile without assertions
+  CXXFLAGS+=\ -DNDEBUG
+
+  # export CXX=clang++
+
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+    -DBUILD_SHARED_LIBS=yes \
+    -DSNAPPY_USE_BUNDLED_GTEST=OFF \
+    -DSNAPPY_USE_BUNDLED_BENCHMARK_LIB=OFF \
+    .
+
+  make
+}
+
+check() {
+  # compile without assertions
+  CXXFLAGS+=\ -DNDEBUG
+
+  make -C "$pkgname-$pkgver" test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+
+  make DESTDIR="$pkgdir" install
+  install -m644 -D COPYING "$pkgdir/usr/share/licenses/snappy/LICENSE"
+
+  # upstream dropped the pkgconfig file and isn't interested in adding it back.
+  # https://github.com/google/snappy/pull/55
+  install -Dm644 "$srcdir/snappy.pc" "$pkgdir/usr/lib/pkgconfig/snappy.pc"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: snappy/repos/testing-x86_64/snappy.pc (from rev 422279, snappy/trunk/snappy.pc)
===================================================================
--- testing-x86_64/snappy.pc	                        (rev 0)
+++ testing-x86_64/snappy.pc	2021-08-16 16:14:38 UTC (rev 422280)
@@ -0,0 +1,10 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: snappy
+Description: A fast compression/decompression library
+Version: 1.1.4
+Libs: -L${libdir} -lsnappy
+Cflags: -I${includedir}



More information about the arch-commits mailing list