initial commit

This commit is contained in:
BigfootACA 2024-08-18 00:18:32 +08:00
commit 85dffb37bc
3 changed files with 61 additions and 0 deletions

15
.SRCINFO Normal file
View File

@ -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

13
.gitignore vendored Normal file
View File

@ -0,0 +1,13 @@
src
pkg
mpp
*.deb
*.rpm
*.bz2
*.gz
*.zip
*.tgz
*.pkg.tar.xz
*.pkg.tar.zst
*.log
*.png

33
PKGBUILD Normal file
View File

@ -0,0 +1,33 @@
# Maintainer: BigfootACA <bigfoot@classfun.cn>
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
}