blob: 7bcd45fb123b939147fed7c835e19722b1a402f1 (
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
48
49
50
51
52
53
54
|
# Maintainer: quietvoid <tcChlisop0@gmail.com>
pkgname=dovi_tool-git
pkgver=2.1.2.r10.ga4f1b62
pkgrel=1
pkgdesc='CLI tool combining multiple utilities for working with Dolby Vision'
arch=('x86_64')
url='https://github.com/quietvoid/dovi_tool'
license=('MIT')
makedepends=('git' 'cargo')
depends=('fontconfig')
conflicts=('dovi-tool')
provides=('dovi-tool')
source=(git+https://github.com/quietvoid/dovi_tool.git)
sha256sums=('SKIP')
pkgver() {
cd dovi_tool
git describe --match "[0-9]*" --long HEAD --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cargo fetch \
--locked \
--manifest-path dovi_tool/Cargo.toml
}
build() {
cargo build \
--release \
--frozen \
--manifest-path dovi_tool/Cargo.toml
}
check() {
cargo test \
--release \
--frozen \
--manifest-path dovi_tool/Cargo.toml
}
package() {
cd dovi_tool
cargo install \
--frozen \
--offline \
--no-track \
--path . \
--root "${pkgdir}"/usr
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/dovi_tool/LICENSE"
}
|