From a7f8166c8968d3414378051d28dcfcc3e377837b Mon Sep 17 00:00:00 2001 From: root Date: Sun, 23 Sep 2012 01:12:09 -0700 Subject: Sun Sep 23 01:11:08 PDT 2012 --- extra/snappy/PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 extra/snappy/PKGBUILD (limited to 'extra/snappy/PKGBUILD') diff --git a/extra/snappy/PKGBUILD b/extra/snappy/PKGBUILD new file mode 100644 index 000000000..fbd7a1ac5 --- /dev/null +++ b/extra/snappy/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 166939 2012-09-22 20:17:43Z dreisner $ +# Maintainer: Dave Reisner +# Contributor: Antony Male > + +pkgname=snappy +pkgver=1.0.5 +pkgrel=2 +pkgdesc='A fast compressor/decompressor library' +arch=('i686' 'x86_64') +url="http://code.google.com/p/snappy/" +license=('BSD') +depends=('glibc' 'gcc-libs') +checkdepends=('zlib') +options=('!libtool') +source=("http://snappy.googlecode.com/files/$pkgname-$pkgver.tar.gz") +md5sums=('4c0af044e654f5983f4acbf00d1ac236') + +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: -- cgit v1.2.3-54-g00ecf