summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10d2573641281180cac2e5990695ee8a404c8275 (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
# PKGBUILD generated by pipman
# Python package author: Stefan Marsiske <s@ctrlc.hu>
# Maintainer: Hauke Rehfeld <aur.archlinux.org@haukerehfeld.de>
_name="pysodium"
pkgname="python-${_name}"
pkgver=0.7.12
_pkgsubdir="${_name}-${pkgver}"
pkgrel=2
pkgdesc="python libsodium wrapper"
arch=(any)
url="https://github.com/stef/pysodium"
license=(BSD)
makedepends=("python-build" "python-installer" "python-setuptools" "python-wheel")
depends=("libsodium" "python")
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/${_pkgsubdir}.tar.gz")
sha256sums=('3e9005c770dca021889b2fe77db7ffa3c2e98fcac7e3cc1e8e157b9ed78f1fc8')

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

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

  install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
}

check(){
  cd "$srcdir/$_pkgsubdir"
  python -m test.test_pysodium
}