diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 66 |
3 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3febc5ae1274 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = android-riscv64-avisynthplus + pkgdesc = An improved version of the AviSynth frameserver (Android riscv64) + pkgver = 3.7.3 + pkgrel = 3 + url = https://avs-plus.net/ + arch = any + groups = android-avisynthplus + license = GPL + makedepends = android-cmake + makedepends = android-riscv64-devil + depends = android-ndk + optdepends = android-riscv64-devil: for ImageSeq plugin + options = !strip + options = !buildflags + options = staticlibs + options = !emptydirs + source = https://github.com/AviSynth/AviSynthPlus/archive/v3.7.3/avisynthplus-3.7.3.tar.gz + md5sums = e18f562c225aa04792f318a2d3039418 + +pkgname = android-riscv64-avisynthplus 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..dcb478b03a3d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,66 @@ +# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com> +# Contributor: Daniel Bermond <dbermond@archlinux.org> + +_android_arch=riscv64 + +pkgname=android-${_android_arch}-avisynthplus +pkgver=3.7.3 +pkgrel=3 +arch=('any') +pkgdesc="An improved version of the AviSynth frameserver (Android ${_android_arch})" +url='https://avs-plus.net/' +license=('GPL') +groups=('android-avisynthplus') +depends=('android-ndk') +optdepends=("android-${_android_arch}-devil: for ImageSeq plugin") +makedepends=('android-cmake' + "android-${_android_arch}-devil") +options=(!strip !buildflags staticlibs !emptydirs) +source=("https://github.com/AviSynth/AviSynthPlus/archive/v${pkgver}/avisynthplus-${pkgver}.tar.gz") +md5sums=('e18f562c225aa04792f318a2d3039418') + +build() { + cd "${srcdir}/AviSynthPlus-${pkgver}" + source android-env ${_android_arch} + + # Building CXX object avs_core/CMakeFiles/AvsCore.dir/filters/exprfilter/exprfilter.cpp.o + + android-${_android_arch}-cmake \ + -S . \ + -B build-shared \ + -DBUILD_SHARED_LIBS=ON \ + -DENABLE_INTEL_SIMD=OFF \ + -DIL_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}/IL" \ + -DIL_LIBRARIES="${ANDROID_PREFIX_LIB}/libIL.so" \ + -DILU_LIBRARIES="${ANDROID_PREFIX_LIB}/libILU.so" \ + -Wno-dev + sed -i 's| -lpthread ||g' build-shared/avs_core/avisynth.pc + sed -i 's| -lpthread ||g' build-shared/avs_core/CMakeFiles/AvsCore.dir/link.txt + make -C build-shared $MAKEFLAGS + + export LDFLAGS="${LDFLAGS} -ljasper -ljpeg -lpng -ltiff" + + android-${_android_arch}-cmake \ + -S . \ + -B build-static \ + -DBUILD_SHARED_LIBS=OFF \ + -DENABLE_INTEL_SIMD=OFF \ + -DIL_INCLUDE_DIR="${ANDROID_PREFIX_INCLUDE}/IL" \ + -DIL_LIBRARIES="${ANDROID_PREFIX_LIB}/libIL.a" \ + -DILU_LIBRARIES="${ANDROID_PREFIX_LIB}/libILU.a" \ + -Wno-dev + sed -i 's| -lpthread ||g' build-static/avs_core/avisynth.pc + sed -i 's| -lpthread ||g' build-static/avs_core/CMakeFiles/AvsCore.dir/link.txt + make -C build-static $MAKEFLAGS +} + +package() { + cd "${srcdir}/AviSynthPlus-${pkgver}" + source android-env ${_android_arch} + + make -C build-shared DESTDIR="${pkgdir}" install + make -C build-static DESTDIR="${pkgdir}" install + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.so + ${ANDROID_STRIP} -g --strip-unneeded "${pkgdir}/${ANDROID_PREFIX_LIB}/avisynth"/*.so + ${ANDROID_STRIP} -g "${pkgdir}/${ANDROID_PREFIX_LIB}"/*.a +} |