summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6e48948506c262747c3dd9c3694ed44bfb301f53 (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
# Maintainer: aliu <aaron liu 0 one hundred and dirty @gmail.com>
# Contributor: Jingu <xiuluo dot android at gmail dot com>
# Contributor: Daniel Souza <aur at posix dot dev dot br>
_pkgauthor="chainner-org"
_pkgname="chainner"
pkgname="${_pkgname}-bin"
pkgver=0.24.1
pkgrel=1
pkgdesc='Node-based image processing and AI upscaling GUI'
arch=('x86_64')
url="https://github.com/chaiNNer-org/chaiNNer/"
license=('GPL3')
groups=()
depends=('libxcrypt-compat')
makedepends=()
optdepends=('python-pytorch' 'python-torchvision' 'python-facexlib' 'python-einops: PyTorch support'
		'python-ncnn-vulkan: NCNN support'
		'python-onnx' 'python-onnxoptimizer' 'python-onnxruntime' 'python-protobuf' 'python-numba: ONNX support' )
provides=("${_pkgname}")
conflicts=()
backup=()
options=('!emptydirs' '!strip')
install=chainner.install
changelog=
source=("https://github.com/${_pkgauthor}/${_pkgname}/releases/download/v${pkgver}/${_pkgname}-${pkgver}-x64-linux-redhat.rpm")
noextract=()
sha256sums=('aecc29adaa90861381b167e30b6483a4d55a92d696c21a55728a6b43cabbfb9c')

# TODO: Convert to native electron

package() (
    mkdir -p "${pkgdir}/usr/bin/"
    mkdir -p "${pkgdir}/usr/lib/"
    mkdir -p "${pkgdir}/usr/share/"
    cp -r "${srcdir}/usr/bin/." "${pkgdir}/usr/bin/"
    cp -r "${srcdir}/usr/lib/${_pkgname}/." "${pkgdir}/usr/lib/${_pkgname}/"
    cp -r "${srcdir}/usr/share/." "${pkgdir}/usr/share/"
)