summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32646a09f705546040608155d733f14aac555ce7 (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
# Maintainer: Imperator Storm <ImperatorStorm11@protonmail.com>
# Contributor: Philip Goto <philip.goto@gmail.com>

_pkgname=pyclip
pkgname=python-${_pkgname}
pkgver=0.7.0
pkgrel=5
pkgdesc='Cross-platform clipboard utilities supporting both binary and text data'
arch=(any)
url="https://pypi.org/project/${_pkgname}/"
license=(Apache-2.0)
depends=('python>=3.12.2')
makedepends=(python-setuptools)
optdepends=('xclip: Support for X11'
			'wl-clipboard: Support for Wayland')
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/spyoungtech/pyclip/archive/refs/tags/v${pkgver}.tar.gz")
b2sums=('281a2dacd82d7501e01750134d82fc0b66ac1d41a631b9573160262c94cfb97ad463036e8ec523674580fdfb71849175e58836530d761462a72ba9ba3f2fd618')

build() {
	cd "${_pkgname}-${pkgver}"
	python setup.py build
}

package() {
	cd "${_pkgname}-${pkgver}"
	python setup.py install --skip-build --root="${pkgdir}" --optimize=1
	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}