-
Notifications
You must be signed in to change notification settings - Fork 3
/
PKGBUILD
30 lines (27 loc) · 886 Bytes
/
PKGBUILD
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
# Maintainer: Marco Martinelli <[email protected]>
pkgname=libzstd-seek
pkgver=1.2.0
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=("${pkgname}-${pkgver}::git+https://github.com/martinellimarco/libzstd-seek.git#tag=v${pkgver}")
sha384sums=('SKIP')
build() {
cd "$srcdir/libzstd-seek-$pkgver"
rm -rf build
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
}
package() {
cd "$srcdir/libzstd-seek-$pkgver"
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"
}