blob: 54eabbaec2997a1adb93223e028188230599f936 (
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
|
# Maintainer: Marco Martinelli <marco+libzstd-seek@13byte.com>
pkgname=libzstd-seek-git
pkgver=r32.f52cedc
pkgrel=1
pkgdesc="A library that mimic fread, fseek and ftell for reading zstd compressed files."
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/martinellimarco/libzstd-seek"
license=('GPL3' 'MIT')
provides=("libzstd-seek")
depends=('zstd')
makedepends=('cmake' 'git')
options=('staticlibs')
source=("git+https://github.com/martinellimarco/libzstd-seek.git")
sha384sums=('SKIP')
pkgver() {
cd "$srcdir/libzstd-seek"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/libzstd-seek"
rm -rf build
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
}
package() {
cd "$srcdir/libzstd-seek"
install -Dm644 build/libzstd-seek.a "$pkgdir/usr/lib/libzstd-seek.a"
install -Dm644 zstd-seek.h "$pkgdir/usr/include/libzstd-seek/zstd-seek.h"
}
|