From 85dffb37bc2e3c3ce1f1e3295b28458f2f2a62c8 Mon Sep 17 00:00:00 2001 From: BigfootACA Date: Sun, 18 Aug 2024 00:18:32 +0800 Subject: [PATCH] initial commit --- .SRCINFO | 15 +++++++++++++++ .gitignore | 13 +++++++++++++ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..afc1a8b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = rkmpp-git + pkgdesc = Rockchip Media Processing Platform + pkgver = 1.0.6.r28.g86cf93a0 + pkgrel = 1 + url = https://github.com/rockchip-linux/mpp + arch = aarch64 + license = MIT + license = Apache-2.0 + makedepends = cmake + makedepends = ninja + depends = libdrm + source = git+https://github.com/rockchip-linux/mpp.git + md5sums = SKIP + +pkgname = rkmpp-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..33070be --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +src +pkg +mpp +*.deb +*.rpm +*.bz2 +*.gz +*.zip +*.tgz +*.pkg.tar.xz +*.pkg.tar.zst +*.log +*.png diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..33b47c1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: BigfootACA + +pkgname=rkmpp-git +pkgver=1.0.6.r28.g86cf93a0 +pkgrel=1 +pkgdesc="Rockchip Media Processing Platform" +arch=('aarch64') +url="https://github.com/rockchip-linux/mpp" +license=('MIT' 'Apache-2.0') +depends=('libdrm') +makedepends=('cmake' 'ninja') + +source=("git+https://github.com/rockchip-linux/mpp.git") +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 +} +