Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/brotli: new aport

From: Ivan Tham <pickfire_at_riseup.net>
Date: Sun, 8 Apr 2018 02:31:50 +0800

https://github.com/google/brotli
Brotli compression format
---
 testing/brotli/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 testing/brotli/APKBUILD
diff --git a/testing/brotli/APKBUILD b/testing/brotli/APKBUILD
new file mode 100644
index 0000000000..3dd7d0b1c6
--- /dev/null
+++ b/testing/brotli/APKBUILD
_at_@ -0,0 +1,42 @@
+# Contributor: Ivan Tham <pickfire_at_riseup.net>
+# Maintainer: Ivan Tham <pickfire_at_riseup.net>
+pkgname=brotli
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="Brotli compression format"
+url="https://github.com/google/brotli"
+arch="all"
+license="MIT"
+makedepends="cmake"
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	cd "$builddir"
+	if [ "$CBUILD" != "$CHOST" ]; then
+		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+	fi
+	cmake \
+		-DCMAKE_INSTALL_PREFIX=/usr \
+		-DCMAKE_INSTALL_LIBDIR=lib \
+		-DBUILD_SHARED_LIBS=True \
+		-DCMAKE_BUILD_TYPE=Release \
+		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+		-DCMAKE_C_FLAGS="$CFLAGS" \
+		${CMAKE_CROSSOPTS}
+	make
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+
+	install -dm755 "$pkgdir"/usr/share/man/man1
+	install -m644 docs/brotli.1 "$pkgdir"/usr/share/man/man1
+	install -dm755 "$pkgdir"/usr/share/man/man3
+	install -m644 docs/decode.h.3 docs/encode.h.3 docs/types.h.3 \
+		 "$pkgdir"/usr/share/man/man3
+}
+
+sha512sums="93adcf437d730ac403e444285ac8aefbb2c8a6b5e1b064e8ee33684c067287a8159e0ee73d2217c167881e87da73fa494792d963a15508fd42b2ac4a5b52823c  brotli-1.0.3.tar.gz"
-- 
2.15.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sun Apr 08 2018 - 02:31:50 GMT