summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d77f0d4e6884012e3a0a414b7f0af1f180d7f8e5 (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
# Maintainer: TheFeelTrain <the@feeltra.in>
pkgname=python-vsjetengine-git
_origpkgname=vsjetengine
pkgver=v1.2.0.0.g6f6d704
pkgrel=1
pkgdesc="An engine for vapoursynth previewers, renderers, and script analysis tools. (GIT version)"
arch=("x86_64")
url='https://github.com/Jaded-Encoding-Thaumaturgy/vs-jet-engine'
license=("EUPL-1.2")
depends=("vapoursynth")
makedepends=(
	"git"
	"python-build"
	"python-installer"
	"python-wheel"
	"python-setuptools"
	"python-hatchling"
	"python-versioningit"
)
conflicts=(
	"python-${_origpkgname}"
	"vapoursynth-plugin-vsengine-git"
)
provides=("python-${_origpkgname}")
source=("${_origpkgname}::git+https://github.com/Jaded-Encoding-Thaumaturgy/vs-jet-engine.git")
sha256sums=('SKIP')

pkgver() {
    cd "${_origpkgname}"
    echo "$(git describe --long --tags | tr - . | tr -d R | sed 's|test.||g')"
}

build() {
    cd "${_origpkgname}" || exit
    rm -f dist/*.whl
    python -m build --wheel --no-isolation
}

package() {
    cd "${_origpkgname}" || exit
    python -m installer --destdir="${pkgdir}" dist/*.whl
	install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}