upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / blosc2 / trunk / PKGBUILD
blobdcea3c56163d7d85acd28fdedde268e5d485e577
1 # Maintainer: Bruno Pagani <archange@archlinux.org>
3 pkgname=blosc2
4 pkgver=2.9.1
5 pkgrel=1
6 pkgdesc="A fast, compressed, persistent binary data store library for C."
7 arch=(x86_64)
8 url="https://www.blosc.org"
9 license=(BSD)
10 depends=(lz4 zlib zstd)
11 makedepends=(cmake)
12 source=(https://github.com/Blosc/c-blosc2/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
13 sha512sums=('9430c026f9d7a98e38915e3d308402989073aa6fa1e8e1d5b9bdb155c70c5cc24ca118cdb5b3584647f72ae80a13be0a8467250af7ef336a1ac72eb8ec8a67f5')
14 b2sums=('1853611566f081f5c6236ade1882b07aa6d596f65bb303823f418faaf0e971c1850e3e78ca501650880d4611110200c302896e81a5b13cdf05bc43c81b81dd3a')
16 build() {
17   cmake -B build -S c-blosc2-$pkgver \
18     -D CMAKE_INSTALL_PREFIX=/usr \
19     -D PREFER_EXTERNAL_LZ4=ON \
20     -D PREFER_EXTERNAL_ZLIB=ON \
21     -D PREFER_EXTERNAL_ZSTD=ON
22   cmake --build build
25 check() {
26   ctest --test-dir build --output-on-failure
29 package() {
30   DESTDIR="$pkgdir" cmake --install build
31   install -vDm644 c-blosc2-$pkgver/LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/