blob: 89d1ad98091167dd48519d7d7a14cc855de24897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=google-lyra
pkgver=1.3.2
pkgrel=2
pkgdesc="A very low-bitrate codec for speech compression"
arch=('i686' 'x86_64')
url="https://github.com/google/lyra"
license=('Apache')
depends=('gcc-libs')
makedepends=('bazel<6' 'python-numpy')
source=("$pkgname-$pkgver.tar.gz::https://github.com/google/lyra/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('03ab9de1651e84819f8fe37a510052cee9b22b3be9cfd4813c333651880170e4')
build() {
cd "lyra-$pkgver"
bazel \
build \
-c opt \
lyra/cli_example:decoder_main \
lyra/cli_example:encoder_main
}
check() {
cd "lyra-$pkgver"
#bazel \
# test \
# //:all
}
package() {
cd "lyra-$pkgver"
install -Dm755 "bazel-bin/lyra/cli_example/encoder_main" "$pkgdir/usr/bin/lyra_encoder"
install -Dm755 "bazel-bin/lyra/cli_example/decoder_main" "$pkgdir/usr/bin/lyra_decoder"
}
|