summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7f1fbd73709260c39fcd424ac963ca0db50981f5 (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
27
28
29
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-unpackable
_name=${pkgname#python-}
pkgver=0.0.4
pkgrel=4
pkgdesc="Destructure Python objects"
arch=('any')
url="https://github.com/alexdelorenzo/unpackable"
license=('LGPL-3.0-or-later')
depends=('python-varname')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz"
        'https://raw.githubusercontent.com/alexdelorenzo/unpackable/master/requirements.txt')
sha256sums=('55185896c71f607f43e8cbe22913e46083baf2371ecd1c8a06f0bf93ab76f38d'
            'e68ca41413beb14d84b3165a66989c8d849c4830be538f23cb2791fd3627ec1a')

prepare() {
  cp -f requirements.txt "$_name-$pkgver"
}

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

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