summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 222ea6a9c4bc05eb5bd9e73605c08d48a75eae1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-clipboard
_name=${pkgname#python-}
pkgver=0.0.4
pkgrel=1
pkgdesc="A cross platform clipboard operation Python library."
arch=('any')
url="https://github.com/terryyin/clipboard"
license=('MIT')
depends=('python-pyperclip')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('a72a78e9c9bf68da1c3f29ee022417d13ec9e3824b511559fd2b702b1dd5b817')

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

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