From 0c66a3365ee345df12a1da4d16c21910da51dd13 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 4 Jan 2024 20:58:54 -0500 Subject: [PATCH] user/py3-django-cleanup: new aport --- user/py3-django-cleanup/APKBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 user/py3-django-cleanup/APKBUILD diff --git a/user/py3-django-cleanup/APKBUILD b/user/py3-django-cleanup/APKBUILD new file mode 100644 index 0000000..7d17c8d --- /dev/null +++ b/user/py3-django-cleanup/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Antoine Martin (ayakael) +# Maintainer: Antoine Martin (ayakael) +pkgname=py3-django-cleanup +#_pkgreal is used by apkbuild-pypi to find modules at PyPI +_pkgreal=django-cleanup +pkgver=8.0.0 +pkgrel=0 +pkgdesc="Deletes old files." +url="https://pypi.python.org/project/django-cleanup" +arch="noarch" +license="MIT" +depends="py3-django" +checkdepends="python3-dev" +makedepends="py3-setuptools py3-gpep517 py3-wheel" +source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-cleanup/django-cleanup-$pkgver.tar.gz" +builddir="$srcdir/$_pkgreal-$pkgver" +subpackages="$pkgname-pyc" + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} +sha512sums=" +c11ae07f47c1522afabf477a96e14efee2c86dfb139977bd60e6b293da12181979f1a35295d6bb4822fc0dbfcc2780253faa72ce291f1fdbb02436291c7866db py3-django-cleanup-8.0.0.tar.gz +"