blob: 698433e017f5a9a9a24a6620cbf70196508312f1 (
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
55
|
# Maintainer: quietvoid <tcChlisop0@gmail.com>
pkgname=libdovi-git
pkgver=3.0.0.r0.gf2683ac
pkgrel=1
pkgdesc='Library to read and write Dolby Vision metadata (C-API)'
arch=('any')
url='https://github.com/quietvoid/dovi_tool/tree/main/dolby_vision'
license=('MIT')
depends=('gcc-libs' 'glibc')
makedepends=('git' 'cargo' 'cargo-c')
conflicts=('libdovi.so')
provides=('libdovi.so')
source=(git+https://github.com/quietvoid/dovi_tool.git)
sha256sums=(SKIP)
pkgver() {
cd dovi_tool
git describe --match "libdovi-[0-9]*" --long HEAD --tags | sed 's/^libdovi-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cargo fetch \
--locked \
--manifest-path dovi_tool/dolby_vision/Cargo.toml
}
build() {
cargo cbuild \
--release \
--frozen \
--prefix=/usr \
--manifest-path dovi_tool/dolby_vision/Cargo.toml
}
check() {
cargo test \
--release \
--frozen \
--all-features \
--manifest-path dovi_tool/dolby_vision/Cargo.toml
}
package() {
cd dovi_tool/dolby_vision
cargo cinstall \
--release \
--frozen \
--prefix /usr \
--destdir "${pkgdir}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/libdovi/LICENSE"
}
|