summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD31
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..e1576a1f76d6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Wed Feb 15 22:47:41 UTC 2017
+pkgbase = cm256cc-git
+ pkgdesc = Fast GF(256) Cauchy MDS Block Erasure Codec in C++
+ pkgver = r80.c89bada
+ pkgrel = 1
+ url = https://github.com/f4exb/cm256cc
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = cmake
+ provides = cm256cc
+ conflicts = cm256cc
+ source = git+https://github.com/f4exb/cm256cc.git
+ sha256sums = SKIP
+
+pkgname = cm256cc-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..d39548fd5e5e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: Michal Krenek (Mikos) <m.krenek@gmail.com>
+pkgname=cm256cc-git
+pkgver=r80.c89bada
+pkgrel=1
+pkgdesc="Fast GF(256) Cauchy MDS Block Erasure Codec in C++"
+arch=('i686' 'x86_64')
+url="https://github.com/f4exb/cm256cc"
+license=('BSD')
+makedepends=('git' 'cmake')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=('git+https://github.com/f4exb/cm256cc.git')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ cmake . \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ make DESTDIR="$pkgdir/" install
+}