diff --git a/testing/py3-pytelegrambotapi/APKBUILD b/testing/py3-pytelegrambotapi/APKBUILD new file mode 100644 index 0000000..f16f850 --- /dev/null +++ b/testing/py3-pytelegrambotapi/APKBUILD @@ -0,0 +1,35 @@ +# Maintainer: Antoine Martin (ayakael) +# Contributor: Antoine Martin (ayakael) + +pkgname=py3-pytelegrambotapi +pkgver=4.12.0 +pkgrel=0 +arch="noarch" +pkgdesc="A simple, but extensible Python implementation for the Telegram Bot API." +url="https://pypi.org/project/pyTelegramBotAPI/" +license="GPL-2.0-only" +makedepends=" + py3-setuptools + py3-gpep517 + py3-installer + py3-wheel + " +source="$pkgname-$pkgver.tar.gz::https://github.com/eternnoir/pyTelegramBotAPI/archive/$pkgver.tar.gz" +builddir="$srcdir"/pyTelegramBotAPI-$pkgver +options="!check" # No testsuite +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=" +cc039a8614aea4cd52e5b93f01a9b01bf8c4b57e4ec2acfb05b74b4dcfae7f9995ea4e6c1e52768e36cb0447f388cfab4cf66afcfdaec75459cfd516bda04f17 py3-pytelegrambotapi-4.12.0.tar.gz +" diff --git a/user/py3-pytelegrambotapi/APKBUILD b/user/py3-pytelegrambotapi/APKBUILD deleted file mode 100644 index b712d75..0000000 --- a/user/py3-pytelegrambotapi/APKBUILD +++ /dev/null @@ -1,22 +0,0 @@ -# Maintainer: Antoine Martin (ayakael) -# Contributor: Antoine Martin (ayakael) - -pkgname=py3-pytelegrambotapi -pkgver=4.10.0 -pkgrel=0 -arch='noarch' -pkgdesc="A simple, but extensible Python implementation for the Telegram Bot API." -url="https://pypi.org/project/pyTelegramBotAPI/" -license="GPL2" -depends=python3 -makedepends="python3 py3-setuptools" -source="$pkgname-$pkgver.tar.gz::https://github.com/eternnoir/pyTelegramBotAPI/archive/$pkgver.tar.gz" -builddir="$srcdir"/pyTelegramBotAPI-$pkgver -options="!check" - -package() { - python3 setup.py install --root=$pkgdir/ -} -sha512sums=" -ba8a4251357fe24a0aae29cdf791a1e71667bbb0eda6f214211f9cd24dcf9074d4e0d5af1398992d8e6b76f573fa184e6e35322286de9aa0a333296257535fcb py3-pytelegrambotapi-4.10.0.tar.gz -"