2024-08-18 00:18:32 +08:00
|
|
|
# Maintainer: BigfootACA <bigfoot@classfun.cn>
|
|
|
|
|
|
|
|
pkgname=rkmpp-git
|
2024-09-19 19:37:59 +08:00
|
|
|
pkgver=1.0.7.r6.g05b80939
|
|
|
|
pkgrel=2
|
2024-08-18 00:18:32 +08:00
|
|
|
pkgdesc="Rockchip Media Processing Platform"
|
|
|
|
arch=('aarch64')
|
|
|
|
url="https://github.com/rockchip-linux/mpp"
|
|
|
|
license=('MIT' 'Apache-2.0')
|
|
|
|
depends=('libdrm')
|
|
|
|
makedepends=('cmake' 'ninja')
|
|
|
|
|
2024-09-19 19:37:59 +08:00
|
|
|
source=("git+https://gitea.classfun.cn:4443/mirrors/mpp.git")
|
2024-08-18 00:18:32 +08:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/mpp"
|
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${srcdir}/mpp"
|
|
|
|
mkdir -p build-mpp
|
|
|
|
cd build-mpp
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=ON -DBUILD_TEST=OFF ..
|
|
|
|
make -j$(nproc)
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/mpp/build-mpp"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|