Skip to content
Snippets Groups Projects
Commit 332c0d0c authored by alice's avatar alice
Browse files

community/zopfli: build with samurai

parent 89636eaf
No related branches found
No related tags found
No related merge requests found
......@@ -2,32 +2,34 @@
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=zopfli
pkgver=1.0.3
pkgrel=0
pkgrel=1
pkgdesc="Compression algorithm library"
url="https://github.com/google/zopfli"
arch="all"
license="Apache-2.0"
makedepends="cmake"
makedepends="cmake samurai"
options="!check" # no test suite?
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/google/zopfli/archive/zopfli-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"
build() {
cmake -B build \
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=None .
make -C build
-DCMAKE_BUILD_TYPE=None
cmake --build build
}
package() {
make -C build DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" cmake --install build
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -m644 README* \
"$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="362cbeee0b3f04a4c5da512f82671491f874d4ec7b693dca9724ae42123d7ac184cc4d5de1872b4f1fc938c97f79dfdb482f62d1fca4a17cff6d267f6021e8d2 zopfli-1.0.3.tar.gz"
sha512sums="
362cbeee0b3f04a4c5da512f82671491f874d4ec7b693dca9724ae42123d7ac184cc4d5de1872b4f1fc938c97f79dfdb482f62d1fca4a17cff6d267f6021e8d2 zopfli-1.0.3.tar.gz
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment