summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Bernardoff2021-06-18 20:08:55 +0200
committerVincent Bernardoff2021-06-18 20:08:55 +0200
commit8ae31b097d8523379aa6bda169dd543e34808268 (patch)
tree13013a6be12574e6416be5152c4859be550c9cc6
downloadaur-8ae31b097d8523379aa6bda169dd543e34808268.tar.gz
v2.0.0-rc2
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD37
2 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ff41bb67d0c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = blosc2
+ pkgdesc = Next generation c-blosc
+ pkgver = 2.0.0_rc2
+ pkgrel = 1
+ url = https://blosc-doc.readthedocs.io/en/latest/
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ makedepends = ninja
+ depends = glibc
+ depends = lz4
+ depends = snappy
+ depends = zlib
+ depends = zstd
+ options = staticlibs
+ source = https://github.com/Blosc/c-blosc2/archive/refs/tags/v2.0.0-rc2.tar.gz
+ sha256sums = d07aa234f48123a4c4cb66b6936adc6e2144e7e5e7ec19f806739439733af4f1
+
+pkgname = blosc2
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..652d01b4125
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Vincent Bernardoff <vb AT luminar DOT eu DOT org>
+
+pkgname=blosc2
+_pkgver=2.0.0-rc2
+pkgver=2.0.0_rc2
+pkgrel=1
+pkgdesc="Next generation c-blosc"
+arch=('i686' 'x86_64')
+url="https://blosc-doc.readthedocs.io/en/latest/"
+license=('BSD')
+depends=('glibc' 'lz4' 'snappy' 'zlib' 'zstd')
+makedepends=('git' 'cmake' 'ninja')
+options=('staticlibs')
+source=("https://github.com/Blosc/c-blosc2/archive/refs/tags/v${_pkgver}.tar.gz")
+sha256sums=('d07aa234f48123a4c4cb66b6936adc6e2144e7e5e7ec19f806739439733af4f1')
+
+build() {
+ cd c-${pkgname}-${_pkgver}
+
+ cmake \
+ -B "_build" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DPREFER_EXTERNAL_LZ4="ON" \
+ -DPREFER_EXTERNAL_ZLIB="ON" \
+ -DPREFER_EXTERNAL_ZSTD="ON" \
+ -GNinja \
+ ./
+ ninja -C "_build"
+}
+
+package() {
+ cd c-${pkgname}-${_pkgver}
+
+ DESTDIR="$pkgdir" ninja -C "_build" install
+ install -Dm644 "LICENSE.txt" -t "$pkgdir/usr/share/licenses/blosc2"
+}