[arch-commits] Commit in codec2/repos (2 files)

Daniel Bermond dbermond at gemini.archlinux.org
Fri Aug 13 20:07:57 UTC 2021


    Date: Friday, August 13, 2021 @ 20:07:57
  Author: dbermond
Revision: 998333

archrelease: copy trunk to community-staging-x86_64

Added:
  codec2/repos/community-staging-x86_64/
  codec2/repos/community-staging-x86_64/PKGBUILD
    (from rev 998332, codec2/trunk/PKGBUILD)

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

Copied: codec2/repos/community-staging-x86_64/PKGBUILD (from rev 998332, codec2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-08-13 20:07:57 UTC (rev 998333)
@@ -0,0 +1,38 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Maintainer: Daniel Bermond <dbermond at archlinux.org>
+
+pkgname=codec2
+pkgver=1.0.0
+pkgrel=1
+epoch=1
+pkgdesc='Open source speech codec designed for communications quality speech between 450 and 3200 bit/s'
+arch=('x86_64')
+license=('LGPL2.1')
+url='https://github.com/drowe67/codec2'
+makedepends=('cmake')
+provides=('freedv')
+conflicts=('freedv')
+source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('bba8ccf915600b093252c85059c5472804e843f5a4e331cc6e01f31b4131d84362d8385d0a1d8703be36064ca498e58181c2b7fdedb76d0be58bf6f13ec929b3')
+
+build() {
+  cmake -B build -S $pkgname-$pkgver \
+  	-DCMAKE_BUILD_TYPE=Release \
+  	-DCMAKE_INSTALL_PREFIX=/usr \
+  	-DCMAKE_SKIP_RPATH=YES \
+  	-Wno-dev
+
+  make -C build
+}
+
+package() {
+  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)
+}



More information about the arch-commits mailing list