diff options
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..01e29d0b9858 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = python-efficientnet-pytorch + pkgdesc = PyTorch implementation of EfficientNet + pkgver = 1.0 + pkgrel = 1 + url = https://github.com/lukemelas/EfficientNet-PyTorch + arch = any + license = APACHE + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + makedepends = python-setuptools-scm + depends = python-pytorch + source = python-efficientnet-pytorch-1.0.tar.gz::https://github.com/lukemelas/EfficientNet-PyTorch/archive/refs/tags/1.0.tar.gz + sha256sums = 01789984000ff1de132094cadf85fb2973f474aab61715cc8acab6918d59bd80 + +pkgname = python-efficientnet-pytorch diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e6f241f3c07a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: piernov <piernov@piernov.org> + +pkgname=python-efficientnet-pytorch +pkgver=1.0 +pkgrel=1 +pkgdesc="PyTorch implementation of EfficientNet" +arch=('any') +url="https://github.com/lukemelas/EfficientNet-PyTorch" +license=('APACHE') +depends=('python-pytorch') +makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm') +source=("$pkgname-$pkgver.tar.gz::https://github.com/lukemelas/EfficientNet-PyTorch/archive/refs/tags/$pkgver.tar.gz") +sha256sums=('01789984000ff1de132094cadf85fb2973f474aab61715cc8acab6918d59bd80') + +build() { + cd "$srcdir"/EfficientNet-PyTorch-$pkgver + python setup.py build +} + +package() { + cd "$srcdir"/EfficientNet-PyTorch-$pkgver + python setup.py install --root="$pkgdir"/ --optimize=1 +} |