[arch-commits] Commit in snappy/trunk (PKGBUILD snappy.pc)
Dave Reisner
dreisner at archlinux.org
Sat Nov 18 20:33:23 UTC 2017
Date: Saturday, November 18, 2017 @ 20:33:22
Author: dreisner
Revision: 310396
upgpkg: snappy 1.1.7-1
Added:
snappy/trunk/snappy.pc
Modified:
snappy/trunk/PKGBUILD
-----------+
PKGBUILD | 24 +++++++++++++++++++-----
snappy.pc | 10 ++++++++++
2 files changed, 29 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-11-18 19:53:24 UTC (rev 310395)
+++ PKGBUILD 2017-11-18 20:33:22 UTC (rev 310396)
@@ -3,7 +3,7 @@
# Contributor: Antony Male <antony dot male at geemail dot com>>
pkgname=snappy
-pkgver=1.1.4
+pkgver=1.1.7
pkgrel=1
pkgdesc='A fast compressor/decompressor library'
arch=('x86_64')
@@ -11,8 +11,11 @@
license=('BSD')
depends=('glibc' 'gcc-libs')
checkdepends=('zlib')
-source=("https://github.com/google/snappy/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
-md5sums=('c328993b68afe3e5bd87c8ea9bdeb028')
+makedepends=('cmake' 'clang')
+source=("https://github.com/google/snappy/archive/$pkgver.tar.gz"
+ snappy.pc)
+md5sums=('ee9086291c9ae8deb4dac5e0b85bf54a'
+ '4b491e29a8142fedd11472306f5c1192')
build() {
cd "$pkgname-$pkgver"
@@ -20,7 +23,14 @@
# compile without assertions
CXXFLAGS+=\ -DNDEBUG
- ./configure --prefix=/usr
+ # export CXX=clang++
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=yes \
+ .
+
make
}
@@ -28,7 +38,7 @@
# compile without assertions
CXXFLAGS+=\ -DNDEBUG
- make -C "$pkgname-$pkgver" check
+ make -C "$pkgname-$pkgver" test
}
package() {
@@ -36,6 +46,10 @@
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:
Added: snappy.pc
===================================================================
--- snappy.pc (rev 0)
+++ snappy.pc 2017-11-18 20:33:22 UTC (rev 310396)
@@ -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