| 1 | # Contributor: Bart Ribbers <[email protected]> |
| 2 | # Maintainer: Bart Ribbers <[email protected]> |
| 3 | pkgname=liblc3 |
| 4 | pkgver=1.0.4 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="An efficient low latency audio codec" |
| 7 | url="https://github.com/google/liblc3" |
| 8 | arch="all" |
| 9 | license="Apache-2.0" |
| 10 | makedepends="meson" |
| 11 | subpackages="$pkgname-dev" |
| 12 | source="$pkgname-$pkgver.tar.gz::https://github.com/google/liblc3/archive/refs/tags/v$pkgver.tar.gz" |
| 13 | |
| 14 | build() { |
| 15 | abuild-meson \ |
| 16 | -Db_lto=true \ |
| 17 | . output |
| 18 | meson compile -C output |
| 19 | } |
| 20 | |
| 21 | check() { |
| 22 | meson test -v -C output |
| 23 | } |
| 24 | |
| 25 | package() { |
| 26 | DESTDIR="$pkgdir" meson install --no-rebuild -C output |
| 27 | } |
| 28 | |
| 29 | sha512sums=" |
| 30 | bc047aa26059f2b2a7f5275b580f39a9237ffdd6da03645c7e95957447ba7410768ae5c08fcf1e0ac16fac873be4cbf62695b2298ef72f54f09e577664c27255 liblc3-1.0.4.tar.gz |
| 31 | " |