From da7276938d15f1782ba11a078d7302195f13bee9 Mon Sep 17 00:00:00 2001 From: valadaa48 <61368862+valadaa48@users.noreply.github.com> Date: Sun, 3 May 2020 15:37:43 -0400 Subject: [PATCH] added alarm/librga (#1799) --- alarm/librga/50-rga.rules | 1 + alarm/librga/PKGBUILD | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 alarm/librga/50-rga.rules create mode 100644 alarm/librga/PKGBUILD diff --git a/alarm/librga/50-rga.rules b/alarm/librga/50-rga.rules new file mode 100644 index 000000000..4d1a077b1 --- /dev/null +++ b/alarm/librga/50-rga.rules @@ -0,0 +1 @@ +KERNEL=="rga", GROUP="video", MODE="0660" diff --git a/alarm/librga/PKGBUILD b/alarm/librga/PKGBUILD new file mode 100644 index 000000000..9df8e7936 --- /dev/null +++ b/alarm/librga/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: valadaa48 + +buildarch=12 + +_pkgname=linux-rga +pkgname=librga +pkgver=r36.72e7764 +pkgrel=1 +pkgdesc="Rockchip rga library" +arch=('aarch64' 'armv7h') +url="https://github.com/rockchip-linux/linux-rga" +license=('GPL2') +makedepends=('git') +source=('git+https://github.com/rockchip-linux/linux-rga' + '50-rga.rules') +md5sums=('SKIP' + 'f1f632e0fd8787f40ed2bc5c5e411704') + +pkgver() { + cd "${_pkgname}" + echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" +} + +prepare() { + cd "${_pkgname}" + # Change to release mode + sed -i "s/DEBUG.*:= y/DEBUG :=/" Makefile +} + +build() { + cd "${_pkgname}" + mkdir -p build + make PROJECT_DIR=build +} + +package() { + cd "${_pkgname}" + install -d "${pkgdir}"/usr/lib/udev/rules.d + + install -Dm644 {drmrga.h,RgaApi.h,rga.h,RockchipRgaMacro.h} -t "${pkgdir}"/usr/include/rga + install -Dm755 build/lib/librga.so -t "${pkgdir}"/usr/lib + + cp "${srcdir}"/50-rga.rules "${pkgdir}"/usr/lib/udev/rules.d +}