blob: 78b8936cf3acb1306b4b016a6a14cf787f22c76d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=blosc-git
pkgver=1.17.0.r12.gaa8ee96
pkgrel=1
pkgdesc="A blocking, shuffling and loss-less compression library"
arch=('i686' 'x86_64')
url="https://blosc.org/"
license=('BSD')
depends=('glibc' 'snappy' 'zstd')
makedepends=('git' 'cmake')
provides=('blosc')
conflicts=('blosc')
options=('staticlibs')
source=("git+https://github.com/Blosc/c-blosc.git")
sha256sums=('SKIP')
pkgver() {
cd "c-blosc"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "c-blosc"
mkdir -p "_build" && cd "_build"
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DCMAKE_INSTALL_LIBDIR="lib" \
-DPREFER_EXTERNAL_LZ4="ON" \
-DPREFER_EXTERNAL_SNAPPY="ON" \
-DPREFER_EXTERNAL_ZLIB="ON" \
-DPREFER_EXTERNAL_ZSTD="ON" \
"../"
make
}
check() {
cd "c-blosc"
#make tests
}
package() {
cd "c-blosc"
make -C "_build" DESTDIR="$pkgdir" install
install -Dm644 "LICENSES/BLOSC.txt" -t "$pkgdir/usr/share/licenses/blosc"
}
|