blob: 44854b4867ee7a190b442c05527180ac84467390 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Maintainer: Guillaume Horel <guillaume.horel@gmail.com>
# Contributor: Dave Reisner <dreisner@archlinux.org>
# Contributor: Antony Male <antony dot male at geemail dot com>>
pkgname=snappy-static
_pkgname=snappy
pkgver=1.1.8
pkgrel=1
pkgdesc='A fast compressor/decompressor library'
arch=('x86_64')
url="https://google.github.io/snappy/"
license=('BSD')
depends=('glibc' 'gcc-libs')
makedepends=('cmake')
provides=('snappy')
conflicts=('snappy')
checkdepends=('zlib')
options=('staticlibs')
source=("https://github.com/google/snappy/archive/$pkgver.tar.gz")
sha256sums=('16b677f07832a612b0836178db7f374e414f94657c138e6993cbfc5dcc58651f')
build() {
cd "$_pkgname-$pkgver"
mkdir -p build
cd build
CXXFLAGS+=" -fPIC"
cmake -DSNAPPY_BUILD_TESTS=off \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_PREFIX=/usr \
..
}
package() {
cd "$_pkgname-$pkgver"
install -m644 -D COPYING "$pkgdir/usr/share/licenses/snappy/LICENSE"
cd build
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|