diff options
author | AtomicFS | 2024-05-05 00:18:01 +0200 |
---|---|---|
committer | AtomicFS | 2024-05-05 00:18:01 +0200 |
commit | 0dc2f1e7ea78a5dff8878d4e378fc33626cecb03 (patch) | |
tree | 5bebf555d8144987ba23dda38ef717235979c065 | |
parent | 9bf8862a97fa21b0d812b42d8ebd98c7d6b7a476 (diff) | |
download | aur-0dc2f1e7ea78a5dff8878d4e378fc33626cecb03.tar.gz |
chore: cleanup
Signed-off-by: AtomicFS <vojtech_vesely@white-hat-hacker.icu>
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 26 insertions, 22 deletions
@@ -4,9 +4,12 @@ pkgbase = python-imap-tools pkgrel = 2 url = https://github.com/ikvk/imap_tools arch = any - license = Apache - makedepends = python-setuptools - source = python-imap-tools-1.6.0.src.tar.gz::https://github.com/ikvk/imap_tools/archive/v1.6.0.tar.gz - sha256sums = 8439abe9446a328e2308d74b7f3bd30a1688d8e915250f9404a9b0993938d472 + license = Apache-2.0 + makedepends = python-build + makedepends = python-installer + makedepends = python-wheel + depends = python + source = python-imap-tools::git+https://github.com/ikvk/imap_tools#tag=v1.6.0 + sha256sums = SKIP pkgname = python-imap-tools @@ -1,31 +1,32 @@ -# Maintainer: amo <https://aur.archlinux.org/account/amo> +# Maintainer: atomicfs <https://aur.archlinux.org/account/atomicfs> -_pkgname=imap_tools pkgname=python-imap-tools pkgver=1.6.0 pkgrel=2 pkgdesc="Work with email and mailbox by IMAP" arch=('any') url="https://github.com/ikvk/imap_tools" -license=('Apache') -depends=() -makedepends=('python-setuptools') -source=("$pkgname-$pkgver.src.tar.gz::https://github.com/ikvk/imap_tools/archive/v$pkgver.tar.gz") -sha256sums=('8439abe9446a328e2308d74b7f3bd30a1688d8e915250f9404a9b0993938d472') +license=('Apache-2.0') +depends=( + 'python' +) +makedepends=( + 'python-build' + 'python-installer' + 'python-wheel' +) +source=("${pkgname}::git+${url}#tag=v${pkgver}") +sha256sums=('SKIP') + +#check() {} +# WOuld require some setup build() { - cd "$_pkgname-$pkgver" || exit - python setup.py build + cd "${srcdir}/${pkgname}" + python -m build --wheel --no-isolation } package() { - cd "$_pkgname-$pkgver" || exit - - export PYTHONHASHSEED=0 - python setup.py install --skip-build \ - --optimize=1 \ - --prefix=/usr \ - --root="$pkgdir" - - install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + cd "${srcdir}/${pkgname}" + python -m installer --destdir="${pkgdir}" dist/*.whl } |