Date: Thursday, August 16, 2018 @ 17:51:24 Author: ffy00 Revision: 372000
archrelease: copy trunk to community-x86_64 Added: dsdcc/repos/community-x86_64/ dsdcc/repos/community-x86_64/PKGBUILD (from rev 371999, dsdcc/trunk/PKGBUILD) ----------+ PKGBUILD | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) Copied: dsdcc/repos/community-x86_64/PKGBUILD (from rev 371999, dsdcc/trunk/PKGBUILD) =================================================================== --- community-x86_64/PKGBUILD (rev 0) +++ community-x86_64/PKGBUILD 2018-08-16 17:51:24 UTC (rev 372000) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Filipe Laíns (FFY00) <filipe.la...@gmail.com> +# Contributor: Michal Krenek (Mikos) <m.kre...@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 +}