summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b0325dcca402d9917d36ee91ad49ce2c09706255 (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
# Maintainer: Butui Hu <hot123tea123@gmail.com>

pkgname=python-gluoncv-torch-git
_pkgver=0.0.3
pkgver=0.0.3.r6.4b2b416
pkgrel=1
pkgdesc="Research Framework for easy and efficient training of GANs based on PyTorch"
arch=(any)
url="https://github.com/zhanghang1989/gluoncv-torch"
license=('MIT')
depends=(python-numpy python-pillow python-requests python-torchvision python-tqdm)
makedepends=(git python-setuptools)
provides=(python-gluoncv-torch=${pkgver})
conflicts=(python-gluoncv-torch)
source=("${pkgname}::git+https://github.com/zhanghang1989/gluoncv-torch.git")
md5sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  ver=$(printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
  echo "${_pkgver}.${ver}"
}

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

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: