diff options
author | Muflone | 2022-11-27 02:48:52 +0100 |
---|---|---|
committer | Muflone | 2022-11-27 02:48:52 +0100 |
commit | 21ec69bad2c6a2f3c955a40ceaeff1530cb89e57 (patch) | |
tree | 5df8154d428e86617f225c563859fd17ab4cc2af | |
parent | a34ab0a7302e7bd225e1a25730a8d7b469a553a8 (diff) | |
download | aur-21ec69bad2c6a2f3c955a40ceaeff1530cb89e57.tar.gz |
Updated package python-mumailer 0.3.1-1
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 15 insertions, 10 deletions
@@ -1,14 +1,17 @@ pkgbase = python-mumailer pkgdesc = Simple mailer agent using SMTP - pkgver = 0.3.0 + pkgver = 0.3.1 pkgrel = 1 url = http://www.muflone.com/mumailer arch = any license = GPL3 + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel depends = python-yaml - source = mumailer-0.3.0.tar.gz::https://github.com/muflone/mumailer/archive/0.3.0.tar.gz - sha256sums = 9c13c0ea57db09a499cd11e4208e944df4182fb8e793141c7c63c9d315c4b740 + source = mumailer-0.3.1.tar.gz::https://github.com/muflone/mumailer/archive/0.3.1.tar.gz + sha256sums = 8e0ef7323b4e6d7cac1ff34a977f3ef85026ab5c95ea51f3646b83a3790d92c2 pkgname = python-mumailer @@ -2,30 +2,32 @@ _pkgname=mumailer pkgname=("python-mumailer" "mumailer") -pkgver=0.3.0 +pkgver=0.3.1 pkgrel=1 pkgdesc="Simple mailer agent using SMTP" url="http://www.muflone.com/mumailer" arch=('any') license=('GPL3') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') depends=('python-yaml') source=("${_pkgname}-${pkgver}.tar.gz"::"https://github.com/muflone/${_pkgname}/archive/${pkgver}.tar.gz") -sha256sums=('9c13c0ea57db09a499cd11e4208e944df4182fb8e793141c7c63c9d315c4b740') +sha256sums=('8e0ef7323b4e6d7cac1ff34a977f3ef85026ab5c95ea51f3646b83a3790d92c2') build() { cd "${_pkgname}-${pkgver}" - python setup.py build + python -m build --wheel --no-isolation } package_python-mumailer() { cd "${_pkgname}-${pkgver}" - python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + python -m installer --destdir="${pkgdir}" dist/*.whl for _file in "${pkgdir}/usr/lib/python3.10/site-packages/mumailer/samples"/*.py do chmod +x "${_file}" sed -i '1i#!/usr/bin/python' "${_file}" done + rm "${pkgdir}/usr/bin/mumailer" + rmdir "${pkgdir}/usr/bin" install -d "${pkgdir}/usr/share/doc/${pkgname}" ln -s "/usr/lib/python3.10/site-packages/mumailer/samples" "${pkgdir}/usr/share/doc/${pkgname}" } @@ -34,7 +36,7 @@ package_mumailer() { depends=('python-mumailer') cd "${_pkgname}-${pkgver}" - install -d "${pkgdir}/usr/bin" - ln -s "/usr/lib/python3.10/site-packages/mumailer/samples/profile_smtp.py" "${pkgdir}/usr/bin/${pkgname}" + python -m installer --destdir="build" dist/*.whl + install -m 755 -D "build/usr/bin/mumailer" "${pkgdir}/usr/bin/${pkgname}" } |