archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / cm256cc / trunk / PKGBUILD
blobef4c60e288ef259b7c7098c9cb88ce11aa618e53
1 # Maintainer: Filipe LaĆ­ns (FFY00) <filipe.lains@gmail.com>
3 pkgname=cm256cc
4 pkgver=1.1.0
5 pkgrel=3
6 pkgdesc='Fast GF(256) Cauchy MDS Block Erasure Codec in C++'
7 arch=(x86_64)
8 url="https://github.com/f4exb/cm256cc"
9 license=(GPL3)
10 depends=(
11   gcc-libs
12   glibc
14 makedepends=(
15   boost
16   cmake
18 source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
19 sha512sums=('2bd02675bb2c1c2b422c626c92bd36a0c0fc7a46a0512475424b1bc781d816137eadc52f33f11e100cdc69a7a595f3153fbed0020d6038916e305a2923700959')
20 b2sums=('9c4a36b923bd58a26a85292d62fbd0b4fa1975d75b3b17ca9183c311031b1efd0508a1fe899e9da2f3d31c8540c9d1cb7dcedb65b60ab6f7a780e50f3ff3ae20')
22 build() {
23   local cmake_options=(
24     -B build
25     -D CMAKE_BUILD_TYPE=None
26     -D CMAKE_INSTALL_LIBDIR=lib
27     -D CMAKE_INSTALL_PREFIX=/usr
28     -S $pkgname-$pkgver
29     -W no-dev
30   )
32   cmake "${cmake_options[@]}"
33   cmake --build build --verbose
36 check() {
37   ctest --test-dir build --output-on-failure
40 package() {
41   DESTDIR="$pkgdir" cmake --install build