blob: e0f37408c471fa015399cc0806692c0633f279b9 (
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
|
# Maintainer: Mahmut Dikcizgi <boogiepop a~t gmx com>
# Maintainer: 7Ji <pugokushin@gmail.com>
pkgname='mpp-git'
pkgver='r3406.3b278438'
pkgrel=1
pkgdesc='Rockchip VPU Media Process Platform (MPP) for hardware video decode latest revision from git'
arch=('x86_64' 'aarch64' 'arm7h')
url='https://github.com/rockchip-linux/mpp'
license=('Apache')
depends=('gcc-libs' 'coreutils' 'systemd')
makedepends=('cmake')
provides=({rockchip-,}mpp="${pkgver}")
conflicts=({rockchip-,}mpp)
options=(!lto debug strip)
install='install'
source=(
"git+${url}.git#branch=develop"
'60-mpp.rules'
'install'
)
sha256sums=(
'SKIP'
'4bc41c840642ed4d20a4e696ba623d3d1764b557ab65a69a328cd372e813c705'
'e41004dc18f77d37b23f84464c4367c7ccf94d8e86b6f751437b685322e153d2'
)
build() {
cmake -S mpp -B build \
-DCMAKE_BUILD_TYPE=Release \
-DHAVE_DRM=ON
cmake --build build
}
pkgver() {
cd mpp
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cmake --install build --prefix "${pkgdir}/usr"
# mpp needs to access /dev/mpp_service /dev/rga /dev/dma_heap/ ad so on
# access to those devices are +rw'ed to video groups with those rules
install -m644 -Dt "${pkgdir}/usr/lib/udev/rules.d" 60-mpp.rules
}
|