mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
testing/py3-notifymail: build with gpep517
This commit is contained in:
parent
a4b4934003
commit
ccb34eb20f
@ -3,27 +3,31 @@
|
|||||||
pkgname=py3-notifymail
|
pkgname=py3-notifymail
|
||||||
_pkgname=notifymail
|
_pkgname=notifymail
|
||||||
pkgver=1.1
|
pkgver=1.1
|
||||||
pkgrel=7
|
pkgrel=8
|
||||||
pkgdesc="A Python module to send emails"
|
pkgdesc="A Python module to send emails"
|
||||||
url="https://github.com/davidfstr/notifymail/"
|
url="https://github.com/davidfstr/notifymail/"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
replaces="py-notifymail" # for backwards compatibility
|
|
||||||
provides="py-notifymail=$pkgver-r$pkgrel" # for backwards compatibility
|
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="python3-dev py3-setuptools"
|
makedepends="python3-dev py3-setuptools py3-gpep517"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
||||||
builddir="$srcdir"/$_pkgname-$pkgver
|
builddir="$srcdir"/$_pkgname-$pkgver
|
||||||
|
|
||||||
|
replaces="py-notifymail" # for backwards compatibility
|
||||||
|
provides="py-notifymail=$pkgver-r$pkgrel" # for backwards compatibility
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$builddir"
|
gpep517 build-wheel \
|
||||||
python3 setup.py build
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$builddir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="f06bf000c0855c852bc4fccfb5da5c625bbabe334640dc6557e6518a5657b61ec2fd546cb92ef63cb66b64c6ce469cfb94da21f844e1c6934cc1339a08fe3f1a notifymail-1.1.tar.gz"
|
sha512sums="
|
||||||
|
f06bf000c0855c852bc4fccfb5da5c625bbabe334640dc6557e6518a5657b61ec2fd546cb92ef63cb66b64c6ce469cfb94da21f844e1c6934cc1339a08fe3f1a notifymail-1.1.tar.gz
|
||||||
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user