diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-07-01 00:48:43 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-07-01 00:48:48 +0200 |
commit | 819a307039c0db6d7c4b85a5c7d34a3016916abc (patch) | |
tree | 5c383f09b1dae49cf011f900f22df06047fd991d /main/snappy | |
parent | 4a2731dcafae6eaadf6dda24ccfdf11fd913b481 (diff) | |
download | aports-819a307039c0db6d7c4b85a5c7d34a3016916abc.tar.bz2 aports-819a307039c0db6d7c4b85a5c7d34a3016916abc.tar.xz |
testing/snappy: move to main
Diffstat (limited to 'main/snappy')
-rw-r--r-- | main/snappy/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/main/snappy/APKBUILD b/main/snappy/APKBUILD new file mode 100644 index 0000000000..5a2d6d80a0 --- /dev/null +++ b/main/snappy/APKBUILD @@ -0,0 +1,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" |