diff options
author | sL1pKn07 | 2020-05-17 00:25:34 +0200 |
---|---|---|
committer | sL1pKn07 | 2020-05-17 00:25:34 +0200 |
commit | 92cb464a987517090322b0e533b72cd89e42aa73 (patch) | |
tree | 24f353cd3743239d13da1d9c52a592168350a077 | |
parent | 689cbe08eee47aaae0e07d49e0b7e663f264c8d1 (diff) | |
download | aur-92cb464a987517090322b0e533b72cd89e42aa73.tar.gz |
bump
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 43 |
2 files changed, 22 insertions, 28 deletions
@@ -1,13 +1,12 @@ -# Generated by mksrcinfo v8 -# Fri Mar 15 23:48:16 UTC 2019 pkgbase = vapoursynth-plugin-mvtools_sf-git pkgdesc = Plugin for Vapoursynth: mvtools_sf (GIT version) - pkgver = r9.7.g5dfa875 - pkgrel = 2 + pkgver = r10_pre.1.g820dd0a + pkgrel = 1 url = https://forum.doom9.org/showthread.php?t=172525 arch = x86_64 license = GPL2 makedepends = git + makedepends = vapoursynth-lib-vsfilterscript-git depends = vapoursynth depends = fftw provides = vapoursynth-plugin-mvtools_sf @@ -2,8 +2,8 @@ _plug=mvtools_sf pkgname=vapoursynth-plugin-${_plug}-git -pkgver=r9.7.g5dfa875 -pkgrel=2 +pkgver=r10_pre.1.g820dd0a +pkgrel=1 pkgdesc="Plugin for Vapoursynth: ${_plug} (GIT version)" arch=('x86_64') url='https://forum.doom9.org/showthread.php?t=172525' @@ -11,44 +11,39 @@ license=('GPL2') depends=('vapoursynth' 'fftw' ) -makedepends=('git') +makedepends=('git' + 'vapoursynth-lib-vsfilterscript-git' + ) provides=("vapoursynth-plugin-${_plug}") conflicts=("vapoursynth-plugin-${_plug}") source=("${_plug}::git+https://github.com/IFeelBloated/vapoursynth-mvtools-sf.git") sha256sums=('SKIP') -_site_packages="$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")" - pkgver() { cd "${_plug}" echo "$(git describe --long --tags | tr - .)" } prepare() { - mkdir -p build - cd "${_plug}" - - rm -fr src/VapourSynth.h src/VSHelper.h - - chmod +x autogen.sh - ./autogen.sh + sed 's|"Include/Interface.hxx"|<Include/Interface.hxx>|g' -i src/EntryPoint.cxx + sed -e 's|"Include/VapourSynth.h"|<VapourSynth.h>|g' \ + -e 's|"Include/VSHelper.h"|<VSHelper.h>|g' \ + -i src/*.hxx \ + -i src/*.h + sed 's|"Include/fftw3.h"|<fftw3.h>|g' -i src/DCTFFTW.hpp + + echo "all: + g++ -c -std=gnu++20 -fPIC ${CXXFLAGS} ${CPPFLAGS} -I/usr/include/vsfilterscript -I./src $(pkg-config --cflags vapoursynth) -o EntryPoint.o src/EntryPoint.cxx + g++ -shared -fPIC ${LDFLAGS} -lstdc++ $(pkg-config --libs vapoursynth fftw3) -o lib${_plug}.so EntryPoint.o" > Makefile } build() { - cd build - CXXFLAGS+=" $(pkg-config --cflags vapoursynth)" \ - ../"${_plug}"/configure \ - --prefix=/usr \ - --libdir=/usr/lib/vapoursynth - + cd "${_plug}" make } -package(){ - make -C build DESTDIR="${pkgdir}" install - - install -Dm644 "${_plug}/src/mvmulti.py" "${pkgdir}${_site_packages}/mvmulti.py" - python -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/mvmulti.py" - python -OO -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/mvmulti.py" +package() { + cd "${_plug}" + install -Dm755 "lib${_plug}.so" "${pkgdir}/usr/lib/vapoursynth/lib${_plug}.so" } |