diff options
author | Gonzalo Exequiel Pedone | 2024-04-28 12:22:48 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-04-28 12:22:48 -0300 |
commit | 0addefd41f1efbd90ce974f4872cd794e1f03a54 (patch) | |
tree | bdf2451909830aa49acc41b90cc8a80312fad05d | |
download | aur-0addefd41f1efbd90ce974f4872cd794e1f03a54.tar.gz |
New package.
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 74 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6feee83605e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = android-x86-libvpl + pkgdesc = Intel Video Processing Library (Android x86) + pkgver = 2.10.2 + pkgrel = 1 + url = https://intel.github.io/libvpl/ + arch = any + license = MIT + makedepends = android-cmake + makedepends = android-x86-libpciaccess + depends = android-x86-libdrm + depends = android-x86-libva + depends = android-x86-libx11 + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://github.com/intel/libvpl/archive/v2.10.2/libvpl-2.10.2.tar.gz + sha256sums = ad956ea7ecf14614325f59dfb44cc5ba08e2fcac373342d61c7db152ac651253 + +pkgname = android-x86-libvpl diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b5b03b115225 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +pkg +src +*.tar.xz +*.tar.gz +*.tar.bz2 +*.asc diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3de2f649ab72 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: Daniel Bermond <dbermond@archlinux.org> + +_android_arch=x86 + +pkgname=android-${_android_arch}-libvpl +pkgver=2.10.2 +pkgrel=1 +arch=('any') +pkgdesc="Intel Video Processing Library (Android ${_android_arch})" +url='https://intel.github.io/libvpl/' +license=('MIT') +depends=("android-${_android_arch}-libdrm" + "android-${_android_arch}-libva" + "android-${_android_arch}-libx11") +makedepends=('android-cmake' + "android-${_android_arch}-libpciaccess") +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://github.com/intel/libvpl/archive/v${pkgver}/libvpl-${pkgver}.tar.gz") +sha256sums=('ad956ea7ecf14614325f59dfb44cc5ba08e2fcac373342d61c7db152ac651253') + +build() { + cd "${srcdir}/libvpl-${pkgver}" + source android-env ${_android_arch} + + export CFLAGS="${CFLAGS} -DNDEBUG" + export CXXFLAGS="${CXXFLAGS} -DNDEBUG" + + android-${_android_arch}-cmake \ + -S . \ + -B build \ + -DCMAKE_INSTALL_SYSCONFDIR="${ANDROID_PREFIX_ETC}" \ + -DBUILD_TOOLS=OFF \ + -DBUILD_EXAMPLES=OFF \ + -DBUILD_TESTS=OFF \ + -DINSTALL_EXAMPLE_CODE=OFF \ + -DTOOLS_ENABLE_OPENCL=OFF \ + -Wno-dev + make -C build $MAKEFLAGS +} + +package() { + cd "${srcdir}/libvpl-${pkgver}" + source android-env ${_android_arch} + + make -C build DESTDIR="$pkgdir" install + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}"/${ANDROID_PREFIX_LIB}/*.so +} |