blob: ab42d8033444b3190481a67e078c77266b704020 (
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: Butui Hu <hot123tea123@gmail.com>
pkgname=python-torchgan-git
pkgver=0.0.3.r2.g10b0837
pkgrel=3
pkgdesc="Research Framework for easy and efficient training of GANs based on PyTorch"
arch=(any)
url="https://github.com/torchgan/torchgan"
license=('MIT')
depends=(python-numpy python-pillow python-pytorch python-torchvision)
makedepends=(git python-setuptools)
checkdepends=(python-pytest)
provides=(python-torchgan=${pkgver})
conflicts=(python-torchgan)
source=("${pkgname}::git+https://github.com/torchgan/torchgan.git")
md5sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${srcdir}/${pkgname}"
python setup.py build
}
check() {
cd "${srcdir}/${pkgname}"
PYTHONPATH="${PWD}/build/lib pytest -v"
}
package() {
cd "${srcdir}/${pkgname}"
python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|