blob: 01444bf272eb38c18073d92b0019f602025f246a (
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
40
41
42
43
44
45
46
47
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=google-lyra-git
pkgver=1.3.2.r0.g47698da
pkgrel=1
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=('git' 'bazel' 'python-numpy')
provides=("google-lyra=$pkgver")
conflicts=('google-lyra')
source=("git+https://github.com/google/lyra.git")
sha256sums=('SKIP')
pkgver() {
cd "lyra"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "lyra"
bazel \
build \
-c opt \
:decoder_main \
:encoder_main
}
check() {
cd "lyra"
#bazel \
# test \
# //:all
}
package() {
cd "lyra"
install -Dm755 "bazel-bin/encoder_main" "$pkgdir/usr/bin/lyra_encoder"
install -Dm755 "bazel-bin/decoder_main" "$pkgdir/usr/bin/lyra_decoder"
}
|