upgpkg: python-libthumbor 2.0.2-1

upstream release
This commit is contained in:
2022-08-05 15:52:48 +02:00
parent 3a3040c000
commit f84a23c746
2 changed files with 15 additions and 19 deletions

View File

@@ -1,15 +1,16 @@
pkgbase = python-libthumbor
pkgdesc = Python's extensions to thumbor
pkgver = 2.0.1
pkgver = 2.0.2
pkgrel = 1
url = https://github.com/thumbor/libthumbor
arch = any
license = MIT
makedepends = python-setuptools
makedepends = python-dephell
makedepends = python-build
makedepends = python-installer
makedepends = python-poetry
makedepends = python-poetry-core
depends = python
source = https://github.com/thumbor/libthumbor/archive/2.0.1.tar.gz
b2sums = 79bf3f48db8eef6f2eb19aae1b66484651b4a15a68bfd8ae310653a256f5a4e16009fcaa87d1ab98178f5cdeeaa1d16b5f04107b369481942d4411be589b1ce7
source = https://github.com/thumbor/libthumbor/archive/2.0.2.tar.gz
b2sums = 7682aeff1b7ea0cb026d08c16e73ffed2f3b9d59aa2329ca7d3fcb910860c9f495de53cfb17b651402af5e7166043634c1df334b8a8cc2c912a352b9e36157a1
pkgname = python-libthumbor

View File

@@ -2,29 +2,24 @@
pkgname=python-libthumbor
_name=${pkgname#python-}
pkgver=2.0.1
pkgver=2.0.2
pkgrel=1
pkgdesc="Python's extensions to thumbor"
arch=(any)
url="https://github.com/thumbor/libthumbor"
license=('MIT')
depends=(python)
makedepends=(python-setuptools python-dephell)
makedepends=(python-build python-installer python-poetry python-poetry-core)
source=("https://github.com/thumbor/libthumbor/archive/$pkgver.tar.gz")
b2sums=('79bf3f48db8eef6f2eb19aae1b66484651b4a15a68bfd8ae310653a256f5a4e16009fcaa87d1ab98178f5cdeeaa1d16b5f04107b369481942d4411be589b1ce7')
prepare() {
cd "$_name-$pkgver"
dephell deps convert --from pyproject.toml --to setup.py
}
b2sums=('7682aeff1b7ea0cb026d08c16e73ffed2f3b9d59aa2329ca7d3fcb910860c9f495de53cfb17b651402af5e7166043634c1df334b8a8cc2c912a352b9e36157a1')
build() {
cd "$_name-$pkgver"
python setup.py build
cd "$_name-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd "$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}