summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: acf03a9ea0f740358deab39e06da457c6eda5729 (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
# Maintainer: Santiago Lo Coco <mail at slococo dot com dot ar>

_pkgname="isr"
pkgname="${_pkgname}-git"
pkgver=r150.3f6498c
pkgrel=2
pkgdesc="Super-scale your images and run experiments with Residual Dense and Adversarial Networks."
arch=("any")
url="https://github.com/idealo/image-super-resolution"
license=("Apache")
_pydeps=("numpy" "imageio" "pyaml" "tensorflow")
depends=("python" ${_pydeps[@]/#/python-})
makedepends=("git" "python-setuptools")
provides=("isr")
conflicts=("isr")
source=("${pkgname}-${pkgver}.zip::https://github.com/idealo/image-super-resolution/archive/refs/heads/master.zip")
sha256sums=('SKIP')
_srcname="image-super-resolution-master"

build() {
    cd "${srcdir}/${_srcname}"
    python setup.py build
}

package() {
    cd "${srcdir}/${_srcname}"
    python setup.py install --root="${pkgdir}/" --prefix=/usr --optimize=1 --skip-build
    install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}"
}