Date: Friday, August 13, 2021 @ 20:07:36 Author: dbermond Revision: 998332
upgpkg: codec2 1:1.0.0-1 Modified: codec2/trunk/PKGBUILD ----------+ PKGBUILD | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-08-13 19:56:00 UTC (rev 998331) +++ PKGBUILD 2021-08-13 20:07:36 UTC (rev 998332) @@ -1,7 +1,8 @@ # Maintainer: Filipe LaĆns (FFY00) <la...@archlinux.org> +# Maintainer: Daniel Bermond <dberm...@archlinux.org> pkgname=codec2 -pkgver=0.9.2 +pkgver=1.0.0 pkgrel=1 epoch=1 pkgdesc='Open source speech codec designed for communications quality speech between 450 and 3200 bit/s' @@ -11,23 +12,27 @@ makedepends=('cmake') provides=('freedv') conflicts=('freedv') -source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") -sha512sums=('30a2eb95f7b0f47f0c0c7f08c9118f089acc32adf8b27f5b4354c89139efe80607d6d0ca5e0a9eefddf3640f02c483b9c804ad52c5dec6295968b7267f3a716c') +source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('bba8ccf915600b093252c85059c5472804e843f5a4e331cc6e01f31b4131d84362d8385d0a1d8703be36064ca498e58181c2b7fdedb76d0be58bf6f13ec929b3') build() { - mkdir $pkgname-$pkgver/build - cd $pkgname-$pkgver/build - - cmake .. \ + cmake -B build -S $pkgname-$pkgver \ -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=/usr + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_SKIP_RPATH=YES \ + -Wno-dev - make + make -C build } package() { - cd $pkgname-$pkgver/build - - make DESTDIR="$pkgdir" install + make -C build DESTDIR="$pkgdir" install + + local _bin + while read -r -d '' _bin + do + install -D -m755 "$_bin" -t "$pkgdir/usr/bin" + done < <(find build -type f -regextype posix-extended \ + -regex '.*/(c2(demo|dec|enc|sim)|freedv_(t|r)x|(cohpsk|fdmdv|fsk|ldpc|ofdm)_.*)' \ + -executable -print0) } -