Initial upload: python-libthumbor 2.0.1-1

This commit is contained in:
2021-03-16 13:47:17 +01:00
parent a53cb9c98f
commit 5da0b2072f
2 changed files with 45 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,30 @@
# Maintainer: Giovanni Harting <539@idlegandalf.com>
pkgname=python-libthumbor
_name=${pkgname#python-}
pkgver=2.0.1
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)
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
}
build() {
cd "$_name-$pkgver"
python setup.py build
}
package() {
cd "$_name-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}