[arch-commits] Commit in (dsdcc dsdcc/repos dsdcc/trunk dsdcc/trunk/PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Thu Aug 16 17:51:17 UTC 2018
Date: Thursday, August 16, 2018 @ 17:51:16
Author: ffy00
Revision: 371999
import from aur
Added:
dsdcc/
dsdcc/repos/
dsdcc/trunk/
dsdcc/trunk/PKGBUILD
----------+
PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
Added: dsdcc/trunk/PKGBUILD
===================================================================
--- dsdcc/trunk/PKGBUILD (rev 0)
+++ dsdcc/trunk/PKGBUILD 2018-08-16 17:51:16 UTC (rev 371999)
@@ -0,0 +1,60 @@
+# $Id$
+# Maintainer: Filipe Laíns (FFY00) <filipe.lains at gmail.com>
+# Contributor: Michal Krenek (Mikos) <m.krenek at gmail.com>
+
+pkgname=dsdcc
+pkgver=1.8.3
+pkgrel=2
+pkgdesc="Digital Speech Decoder (DSD) rewritten as a C++ library"
+arch=('x86_64')
+url="https://github.com/f4exb/dsdcc"
+license=('GPL3')
+depends=('mbelib' 'serialdv')
+makedepends=('cmake')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('0c865969948c5c9dd80900cb0656605d603a2ab688f98d6641bb3a6d97b592ed')
+
+prepare() {
+ cd "$srcdir"/$pkgname-$pkgver
+ sed -i 's|LIBSERIAL_NAMES|LIBSERIALDV_NAMES|g' cmake/Modules/FindSerialDV.cmake
+}
+
+build() {
+ mkdir -p "$srcdir"/$pkgname-$pkgver/build
+ cd "$srcdir"/$pkgname-$pkgver/build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIBSERIALDV_INCLUDE_DIR=/usr/include/serialdv \
+ -DUSE_MBELIB=ON
+
+ make
+
+ # Build tests
+ cd "$srcdir"/$pkgname-$pkgver/testfec
+
+ make
+}
+
+check() {
+ cd "$srcdir"/$pkgname-$pkgver/testfec
+
+ ./qr
+ ./golay20
+ ./golay23
+ ./golay24
+ ./hamming7
+ ./hamming12
+ ./hamming15
+ ./hamming16
+ ./viterbi
+ ./viterbi35
+ ./crc
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver/build
+
+ make DESTDIR="$pkgdir" install
+}
Property changes on: dsdcc/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list