blob: 88c3f77d611a878fbd203fc4cf0b1833a3086286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: WoofinaS <woofina.s.love@gmail.com>
# This is a edited version of vapoursynth-plugin-dfttest2-git
# with only cpu support
# Changes made
# Removed cuda as a requirement
# Removed undeeded cmake flags
# Removed c compiler flags overide
_plug=dfttest2
pkgname=vapoursynth-plugin-dfttest2-cpu-git
pkgver=v7.0.g235f6ef
pkgrel=1
pkgdesc="Plugin for Vapoursynth: dfttest2-cpu (GIT Version)"
arch=('x86_64')
url='https://github.com/AmusementClub/vs-dfttest2'
license=('GPL2')
depends=('vapoursynth')
makedepends=('git' 'cmake' 'ninja' 'gcc')
provides=("vapoursynth-plugin-dfttest2" "vapoursynth-plugin-dfttest2-git")
conflicts=("vapoursynth-plugin-dfttest2" "vapoursynth-plugin-dfttest2-git")
source=("${_plug}::git+https://github.com/AmusementClub/vs-dfttest2")
sha256sums=('SKIP')
_site_packages="$(python -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])')"
pkgver() {
cd "${_plug}"
echo "$(git describe --long --tags | tr - . | tr -d r)"
}
prepare() {
cd "${_plug}"
git submodule update --init --recursive
}
build() {
# This is based on what the project's CI is doing
cmake \
-B "build" \
-S "${_plug}" \
-G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS_RELEASE="-ffast-math -march=native" \
-DENABLE_CUDA=0 \
-DENABLE_CPU=1
cmake --build "build" --config Release
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 "${_plug}/${_plug}.py" "${pkgdir}${_site_packages}/${_plug}.py"
python -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/${_plug}.py"
python -OO -m compileall -q -f -d "${_site_packages}" "${pkgdir}${_site_packages}/${_plug}.py"
}
|