jobcore/zstd/PKGBUILD-arch

46 lines
1.4 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Johan Förberg <johan@forberg.se>
pkgname=zstd
pkgver=1.5.2
pkgrel=5
2022-03-20 13:19:37 +01:00
pkgdesc='Zstandard - Fast real-time compression algorithm'
url='https://facebook.github.io/zstd/'
arch=(x86_64)
license=(BSD GPL2)
depends=(glibc gcc-libs zlib xz lz4)
makedepends=(cmake gtest ninja)
2022-03-20 13:19:37 +01:00
provides=(libzstd.so)
options=(debug staticlibs)
2022-03-20 13:19:37 +01:00
source=(https://github.com/facebook/zstd/releases/download/v${pkgver}/zstd-${pkgver}.tar.zst{,.sig})
sha256sums=('3ea06164971edec7caa2045a1932d757c1815858e4c2b68c7ef812647535c23f'
'SKIP')
b2sums=('513e4526a92bcb59416b3457d186a30e554f9e0cf21d7114eb3e9fbcbd9d662c8d95cf0b06237f6fe3f756862c63de0aa146d6a23cb4111c16e6459608d115f1'
'SKIP')
validpgpkeys=(4EF4AC63455FC9F4545D9B7DEF8FE99528B52FFD)
build() {
cmake -S ${pkgname}-${pkgver}/build/cmake -B build -G Ninja \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DZSTD_BUILD_CONTRIB=ON \
-DZSTD_BUILD_TESTS=ON
cmake --build build
2022-03-20 13:19:37 +01:00
}
check() {
cd build/tests
ctest
2022-03-20 13:19:37 +01:00
}
package() {
DESTDIR="${pkgdir}" cmake --install build
2022-03-20 13:19:37 +01:00
ln -sf /usr/bin/zstd "${pkgdir}/usr/bin/zstdmt"
install -Dm 644 ${pkgname}-${pkgver}/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
2022-03-20 13:19:37 +01:00
}
# vim: ts=2 sw=2 et: