[arch-commits] Commit in cm256cc/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 17:55:46 UTC 2020


    Date: Tuesday, July 7, 2020 @ 17:55:46
  Author: felixonmars
Revision: 659914

archrelease: copy trunk to community-staging-x86_64

Added:
  cm256cc/repos/community-staging-x86_64/
  cm256cc/repos/community-staging-x86_64/PKGBUILD
    (from rev 659912, cm256cc/trunk/PKGBUILD)

----------+
 PKGBUILD |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

Copied: cm256cc/repos/community-staging-x86_64/PKGBUILD (from rev 659912, cm256cc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 17:55:46 UTC (rev 659914)
@@ -0,0 +1,34 @@
+# Maintainer: Filipe Laíns (FFY00) <filipe.lains at gmail.com>
+
+pkgname=cm256cc
+pkgver=1.0.5
+pkgrel=2
+pkgdesc='Fast GF(256) Cauchy MDS Block Erasure Codec in C++'
+arch=('x86_64')
+url='https://github.com/f4exb/cm256cc'
+license=('GPL3')
+makedepends=('cmake' 'boost')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('2bf86a155becf64f91430a1380f152716e20785e05de42791498dd577b9051a0d6f9e6818bab0f5b1f88141f70cc46390fabdb4fbdef1aff9a3e51c2085c1ebd')
+
+build() {
+  mkdir -p $pkgname-$pkgver/build
+  cd $pkgname-$pkgver/build
+
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+check() {
+  $pkgname-$pkgver/build/cm256_test
+}
+
+package() {
+  cd $pkgname-$pkgver/build
+
+  make DESTDIR="$pkgdir" install
+}


More information about the arch-commits mailing list