diff options
author | root <root@rshg054.dnsready.net> | 2012-09-23 01:12:09 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-23 01:12:09 -0700 |
commit | a7f8166c8968d3414378051d28dcfcc3e377837b (patch) | |
tree | 1b1b5c4383fe5d1f8c98c8c417fd588e67877e13 /extra/snappy/PKGBUILD | |
parent | 0297e16d6d46f426939811847e72539d15bbf12d (diff) |
Sun Sep 23 01:11:08 PDT 2012
Diffstat (limited to 'extra/snappy/PKGBUILD')
-rw-r--r-- | extra/snappy/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
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 <dreisner@archlinux.org> +# Contributor: Antony Male <antony dot male at geemail dot com>> + +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: |