[arch-commits] Commit in cm256cc/repos (community-x86_64 community-x86_64/PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Thu Aug 16 15:55:34 UTC 2018


    Date: Thursday, August 16, 2018 @ 15:55:33
  Author: ffy00
Revision: 371984

archrelease: copy trunk to community-x86_64

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

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

Copied: cm256cc/repos/community-x86_64/PKGBUILD (from rev 371983, cm256cc/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2018-08-16 15:55:33 UTC (rev 371984)
@@ -0,0 +1,36 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <filipe.lains at gmail.com>
+
+pkgname=cm256cc
+pkgver=1.0.0
+pkgrel=2
+pkgdesc="Fast GF(256) Cauchy MDS Block Erasure Codec in C++"
+arch=('x86_64')
+url="https://github.com/f4exb/cm256cc"
+depends=('boost')
+license=('GPL')
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('753191dee11a82f6281574a7529a96a28d20c318c143a1308a083d1f2cd5ec8bd5b9058dd6d8e3c1c895021fc2b4ef3356dd504b299aec3db6b8856e2f147890')
+
+build() {
+  mkdir -p "$srcdir"/$pkgname-$pkgver/build
+  cd "$srcdir"/$pkgname-$pkgver/build
+
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DCMAKE_INSTALL_PREFIX=/usr
+
+  make
+}
+
+check() {
+  "$srcdir"/$pkgname-$pkgver/build/cm256_test
+}
+
+package() {
+  cd "$srcdir"/$pkgname-$pkgver/build
+
+  make DESTDIR="$pkgdir" install
+}



More information about the arch-commits mailing list