aboutsummaryrefslogtreecommitdiffstats
path: root/main/snappy/APKBUILD
blob: 5a2d6d80a0e839507440e97a861dfd1be6ee8977 (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
42
43
44
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=snappy
pkgver=1.1.1
pkgrel=1
pkgdesc="Fast compression and decompression library"
url="http://code.google.com/p/snappy/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://snappy.googlecode.com/files/snappy-$pkgver.tar.gz"

_builddir="$srcdir"/snappy-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="8887e3b7253b22a31f5486bca3cbc1c2  snappy-1.1.1.tar.gz"
sha256sums="d79f04a41b0b513a014042a4365ec999a1ad5575e10d5e5578720010cb62fab3  snappy-1.1.1.tar.gz"
sha512sums="36b6a1934579dd82a67bcc46626f8dbe9d24d53fe2ca1eca2982d2091054241c9797ada0d4657c484ebc82e7ec11069fd9cd83aac61f4aa1a530167d899041f3  snappy-1.1.1.tar.gz"