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

Christian Hesse eworm at archlinux.org
Mon Sep 7 13:42:13 UTC 2020


    Date: Monday, September 7, 2020 @ 13:42:13
  Author: eworm
Revision: 395551

archrelease: copy trunk to testing-x86_64

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

-----------+
 PKGBUILD  |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 snappy.pc |   10 ++++++++++
 2 files changed, 64 insertions(+)

Copied: snappy/repos/testing-x86_64/PKGBUILD (from rev 395550, snappy/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-09-07 13:42:13 UTC (rev 395551)
@@ -0,0 +1,54 @@
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Antony Male <antony dot male at geemail dot com>>
+
+pkgname=snappy
+pkgver=1.1.8
+pkgrel=2
+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')
+source=("https://github.com/google/snappy/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        snappy.pc)
+md5sums=('70e48cba7fecf289153d009791c9977f'
+         '4b491e29a8142fedd11472306f5c1192')
+
+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 \
+    .
+
+  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 395550, snappy/trunk/snappy.pc)
===================================================================
--- testing-x86_64/snappy.pc	                        (rev 0)
+++ testing-x86_64/snappy.pc	2020-09-07 13:42:13 UTC (rev 395551)
@@ -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