summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14bdc36ab6699dc4a2eb16d2cf7aacc9215c73d2 (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
# Maintainer: laggykiller <chaudominic2 at gmail dot com>
pkgname=python-apngasm-python
_name=apngasm_python
pkgver=1.3.1
pkgrel=1
pkgdesc='A nanobind python API for apngasm, a tool/library for APNG assembly & disassembly with compression support.'
arch=('any')
url="https://github.com/laggykiller/apngasm-python"
license=('LGPL')
depends=('python')
makedepends=(python-build python-installer python-wheel)
optdepends=(
    'python-pillow: allow pillow related functions'
    'python-numpy: allow pillow and numpy related functions')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz")
sha256sums=('9f801237c2865832fab223c432149cb0f6062746b46683db76aecb951c34f731')

build() {
    cd $_name-$pkgver
    python -m build --wheel
}

package() {
    cd $_name-$pkgver
    python -m installer --destdir="$pkgdir" dist/*.whl
}