summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f458f7b72d883380b71cf75aeea88e0ffb1b1c58 (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
37
38
39
# Maintainer:
# Contributor: Rafael Baboni Dominiquini <rafaeldominiquini AT gmail DOT com>

_module="pyperclipimg"
_pkgname="python-$_module"
pkgname="$_pkgname"
pkgver=0.2.0
pkgrel=2
pkgdesc="Cross-platform copy and paste functions for images"
url="https://pypi.org/project/pyperclipimg/"
license=('MIT')
arch=('any')

depends=(
  'python'
  'python-pillow'
)
makedepends=(
  'python-build'
  'python-installer'
  'python-setuptools'
  'python-wheel'
  'python-poetry-core'
)

_pkgsrc="$_module-$pkgver"
source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz")
sha256sums=('7934402ed7ce898e0a3b659e8cafb7c6a2faf7f9ad00069a0fe15a077aae1239')

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

package() {
  cd "$_pkgsrc"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}