summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 565210e77317ed51d8dc71e6058de2c2c8390c15 (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
# Maintainer: zhs <zhao4she4@tuta.io>

pkgname=vapoursynth-plugin-vsmxnet-git
_pkgname=vs_mxnet
pkgver=v0.2.2.0.g26a7b79
pkgrel=1
pkgdesc="Use MXNet to accelerate image processing in VapourSynth (git version), modified to compile on Linux"
arch=('x86_64')
url="https://github.com/kice/vs_mxnet"
license=('MPL2')
depends=('vapoursynth' 'mxnet')
makedepends=('git')
source=("git+https://github.com/kice/vs_mxnet"
	"Makefile.custom"
	"linux-compile.patch")
sha256sums=('SKIP'
	    'ad9c5a4705b259b39c166b4c830ae18896eb0379dc2d412ad039ad7781642592'
            'ba5011e9e638d64db622b9080b3b2c423ce6941f9d248088e7aec10f0f6f7b59')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	echo "$(git describe --long --tags | tr - .)"
}

prepare() {
	cd "${srcdir}/${_pkgname}"
	ln -sf ../Makefile.custom Makefile
	patch -Np1 -i ../linux-compile.patch 
}

build() {
	cd "${srcdir}/${_pkgname}"
	make
}

package() {
	cd "${srcdir}/${_pkgname}"
	make DESTDIR="${pkgdir}" PREFIX="/usr" install
}