diff options
author | dai9ah <dai9ah@protonmail.com> | 2018-03-03 17:34:55 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-04-18 13:27:38 +0000 |
commit | 305ecb518cad2fa94dd6f071dab0bad2e274c634 (patch) | |
tree | 392011cc3ddf3291a0930e3978b1cd6b41594d64 /testing/brotli | |
parent | 9d13149200e831719789924508249cc07699f652 (diff) | |
download | aports-305ecb518cad2fa94dd6f071dab0bad2e274c634.tar.bz2 aports-305ecb518cad2fa94dd6f071dab0bad2e274c634.tar.xz |
testing/brotli: new aport
Diffstat (limited to 'testing/brotli')
-rw-r--r-- | testing/brotli/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/brotli/APKBUILD b/testing/brotli/APKBUILD new file mode 100644 index 0000000000..a8c8557eff --- /dev/null +++ b/testing/brotli/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: prspkt <prspkt@protonmail.com> +# Maintainer: prspkt <prspkt@protonmail.com> +pkgname=brotli +pkgver=1.0.3 +pkgrel=0 +pkgdesc="Generic lossless compressor" +url="https://github.com/google/brotli" +arch="all" +license="MIT" +makedepends="cmake" +subpackages="$pkgname-doc $pkgname-dev" +source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + sed -i "$builddir"/tests/*.sh \ + -e '\_^#!/usr/bin/env _s/bash/sh/' +} + +build() { + mkdir "$builddir"/build + cd "$builddir"/build + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib + make +} + +check() { + cd "$builddir" + make test +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" -C build install + + local man + for man in docs/*.?; do + install -D -m644 $man "$pkgdir"/usr/share/man/man${man##*.}/${man##*/} + done +} + +sha512sums="93adcf437d730ac403e444285ac8aefbb2c8a6b5e1b064e8ee33684c067287a8159e0ee73d2217c167881e87da73fa494792d963a15508fd42b2ac4a5b52823c brotli-1.0.3.tar.gz" |