summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorpiernov2022-06-10 18:59:20 +0200
committerpiernov2022-06-10 18:59:20 +0200
commit021830d7a5fe56352a57f83a34063c9063fc2956 (patch)
treebb5c8105ef963418f4d2239d582426c1565737de /PKGBUILD
downloadaur-python-efficientnet-pytorch.tar.gz
python-efficientnet-pytorch 1.0-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
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
+}