[arch-commits] Commit in snappy/repos/extra-x86_64 (PKGBUILD PKGBUILD snappy.pc)

Dave Reisner dreisner at archlinux.org
Sat Nov 18 20:33:50 UTC 2017


    Date: Saturday, November 18, 2017 @ 20:33:50
  Author: dreisner
Revision: 310397

archrelease: copy trunk to extra-x86_64

Added:
  snappy/repos/extra-x86_64/PKGBUILD
    (from rev 310396, snappy/trunk/PKGBUILD)
  snappy/repos/extra-x86_64/snappy.pc
    (from rev 310396, snappy/trunk/snappy.pc)
Deleted:
  snappy/repos/extra-x86_64/PKGBUILD

-----------+
 PKGBUILD  |   96 ++++++++++++++++++++++++++++++++++--------------------------
 snappy.pc |   10 ++++++
 2 files changed, 65 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-18 20:33:22 UTC (rev 310396)
+++ PKGBUILD	2017-11-18 20:33:50 UTC (rev 310397)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: Dave Reisner <dreisner at archlinux.org>
-# Contributor: Antony Male <antony dot male at geemail dot com>>
-
-pkgname=snappy
-pkgver=1.1.4
-pkgrel=1
-pkgdesc='A fast compressor/decompressor library'
-arch=('i686' 'x86_64')
-url="https://google.github.io/snappy/"
-license=('BSD')
-depends=('glibc' 'gcc-libs')
-checkdepends=('zlib')
-source=("https://github.com/google/snappy/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('c328993b68afe3e5bd87c8ea9bdeb028')
-
-build() {
-  cd "$pkgname-$pkgver"
-
-  # compile without assertions
-  CXXFLAGS+=\ -DNDEBUG
-
-  ./configure --prefix=/usr
-  make
-}
-
-check() {
-  # compile without assertions
-  CXXFLAGS+=\ -DNDEBUG
-
-  make -C "$pkgname-$pkgver" check
-}
-
-package() {
-  cd "$pkgname-$pkgver"
-
-  make DESTDIR="$pkgdir" install
-  install -m644 -D COPYING "$pkgdir/usr/share/licenses/snappy/LICENSE"
-}
-
-# vim:set ts=2 sw=2 et:

Copied: snappy/repos/extra-x86_64/PKGBUILD (from rev 310396, snappy/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-11-18 20:33:50 UTC (rev 310397)
@@ -0,0 +1,55 @@
+# $Id$
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: Antony Male <antony dot male at geemail dot com>>
+
+pkgname=snappy
+pkgver=1.1.7
+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')
+source=("https://github.com/google/snappy/archive/$pkgver.tar.gz"
+        snappy.pc)
+md5sums=('ee9086291c9ae8deb4dac5e0b85bf54a'
+         '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"
+
+  # remove this after the file exists upstream again
+  # 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/extra-x86_64/snappy.pc (from rev 310396, snappy/trunk/snappy.pc)
===================================================================
--- snappy.pc	                        (rev 0)
+++ snappy.pc	2017-11-18 20:33:50 UTC (rev 310397)
@@ -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