diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-07 02:26:32 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-09-07 08:39:17 +0000 |
commit | aa11e598e8b391640f01312daf53668e18854253 (patch) | |
tree | 0faac17289854c245c75b447e33607b6578cb3e5 | |
parent | e7f689f49289edd2d2cfc035b5fbf5ee6bb0d803 (diff) | |
download | aports-aa11e598e8b391640f01312daf53668e18854253.tar.bz2 aports-aa11e598e8b391640f01312daf53668e18854253.tar.xz |
main/snappy: fix project url and modernize
-rw-r--r-- | main/snappy/APKBUILD | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/main/snappy/APKBUILD b/main/snappy/APKBUILD index 733dcae2a0..34b8cecff9 100644 --- a/main/snappy/APKBUILD +++ b/main/snappy/APKBUILD @@ -2,42 +2,28 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=snappy pkgver=1.1.4 -pkgrel=1 +pkgrel=2 pkgdesc="Fast compression and decompression library" -url="http://code.google.com/p/snappy/" +url="http://google.github.io/snappy/" arch="all" license="BSD" -depends="" -depends_dev="" -makedepends="$depends_dev" -install="" subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc" source="https://github.com/google/snappy/releases/download/$pkgver/snappy-$pkgver.tar.gz fix-UnalignedCopy64.patch " -_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 -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure --prefix=/usr \ - --disable-static \ - || return 1 - make || return 1 + --disable-static + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } sha512sums="4f522f1d541e3f00d82ccaf6dda5c6ede28d4db19c53717003d8057261fe8630516ed6ff2a28615da032e0de9c6200b560ed5fce4f8714df9916d50d6a7c2178 snappy-1.1.4.tar.gz |