blob: c3035ecacc4aa29807dbd961c237548cd0c194df (
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
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=optivorbis
pkgver=0.2.0
pkgrel=1
pkgdesc="Application for lossless, format-preserving, two-pass optimization and repair of Vorbis data"
arch=('i686' 'x86_64')
url="https://optivorbis.github.io/OptiVorbis/"
license=('AGPL3' 'BSD')
depends=('gcc-libs')
makedepends=('rust')
source=("$pkgname-$pkgver-src.tar.gz::https://github.com/OptiVorbis/OptiVorbis/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('9ed5f9ff40cdadaa6fbacc4f357f3b5db76f65f34d51e6ac71b01be63135bf96')
prepare() {
cd "OptiVorbis-$pkgver"
if [ ! -f "Cargo.lock" ]; then
cargo update
fi
cargo fetch
}
check() {
cd "OptiVorbis-$pkgver"
#cargo test \
#--frozen
}
package() {
cd "OptiVorbis-$pkgver"
cargo install \
--locked \
--no-track \
--root "$pkgdir/usr" \
--path "packages/optivorbis_cli"
install -Dm644 "LICENSE.BSD-3-Clause" -t "$pkgdir/usr/share/licenses/optivorbis"
}
|