# $Id: PKGBUILD 196879 2013-10-20 21:13:55Z dreisner $ # Maintainer: Dave Reisner # Contributor: Antony Male > pkgname=snappy pkgver=1.1.0 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=('c8f3ef29b5281e78f4946b2d739cea4f') 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: