blob: f4105173167e777d469afda93cf3c811269ae71f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
_pkgname=mumailer
pkgname=("python-mumailer" "mumailer")
pkgver=0.4.3
pkgrel=2
pkgdesc="Simple mailer agent using SMTP"
url="http://www.muflone.com/mumailer"
arch=('any')
license=('GPL3')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
depends=('python-yaml' 'python>=3.11')
source=("${_pkgname}-${pkgver}.tar.gz"::"https://github.com/muflone/${_pkgname}/archive/${pkgver}.tar.gz")
sha256sums=('77dac7e498af2f230bd156bece4be7ddcd67d3e1a1b7f4e6542a97400b7b509e')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package_python-mumailer() {
pkgdesc="Python package to easily send email messages using SMTP"
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
for _file in "${pkgdir}/usr/lib/python3.11/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.11/site-packages/mumailer/samples" "${pkgdir}/usr/share/doc/${pkgname}"
}
package_mumailer() {
depends=('python-mumailer')
pkgdesc="Simple mailer agent using SMTP"
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="build" dist/*.whl
install -m 755 -D "build/usr/bin/mumailer" "${pkgdir}/usr/bin/${pkgname}"
}
|