summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1039aca795cc958f08131fd49eee0679b1f7a331 (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
30
31
32
33
34
35
36
# Maintainer:  Anton Kudelin <kudelin at proton dot me>
# Contributor: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>

_pyname=ebaysdk
pkgname=python-$_pyname
_pkgname=$_pyname-python
pkgver=2.2.0
pkgrel=4
pkgdesc="eBay SDK for Python"
url="https://github.com/timotheus/ebaysdk-python"
arch=(any)
license=(CDDL)
depends=(python-lxml python-requests)
makedepends=(python-setuptools python-build python-installer python-wheel)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('aaf2b04deb504676deaa9915f0993d37f5fd883929b6247d35f13654f6fa9594')

build() {
  cd "$srcdir/$_pkgname-$pkgver"
  python -m build \
    --wheel \
    --no-isolation \
    --skip-dependency-check
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"

  python -m installer \
    --destdir="$pkgdir" \
    --compile-bytecode=2 \
    dist/*.whl

  rm -r "$pkgdir"/usr/lib/python*/site-packages/{samples,tests}
  install -Dm755 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}