diff options
author | Adrian Perez de Castro | 2022-08-30 20:51:12 +0300 |
---|---|---|
committer | Adrian Perez de Castro | 2022-08-30 20:51:12 +0300 |
commit | d901836315a4cac7b1db9a69e41b4dac7eb66d21 (patch) | |
tree | a3b257d1c81c49d05ed3558510ae01fe63b75ff6 | |
parent | dab87ec080ab6563187f54c025c3f0cf121c5579 (diff) | |
download | aur-python-xerox.tar.gz |
Add missing setuptools dependency, fix build in clean chroot
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 23 |
2 files changed, 17 insertions, 13 deletions
@@ -1,14 +1,13 @@ pkgbase = python-xerox pkgdesc = Simple copy+paste module for Python pkgver = 0.4.1 - pkgrel = 2 + pkgrel = 3 url = https://github.com/kennethreitz/xerox arch = any license = custom:MIT depends = xclip - depends = python3 - source = https://github.com/kennethreitz/xerox/archive/v0.4.1.tar.gz + depends = python-setuptools + source = python-xerox-0.4.1.tar.gz::https://github.com/kennethreitz/xerox/archive/v0.4.1.tar.gz sha512sums = 39724b619d12af4447d88ba48e188b329a6cee8c82617a78b6074be40bb87775213e5c822f33d540c83cf104eb84a881d85eabec1b1233c7738f5c7f708a5791 pkgname = python-xerox - @@ -1,17 +1,22 @@ # Maintainer: Adrián Pérez de Castro <aperez@igalia.com> -pkgname='python-xerox' +pkgname=python-xerox pkgdesc='Simple copy+paste module for Python' -pkgver='0.4.1' -pkgrel='2' -url='https://github.com/kennethreitz/xerox' +pkgver=0.4.1 +pkgrel=3 +url=https://github.com/kennethreitz/xerox license=('custom:MIT') -arch=('any') -depends=('xclip' 'python3') -source=("${url}/archive/v${pkgver}.tar.gz") -sha512sums=('39724b619d12af4447d88ba48e188b329a6cee8c82617a78b6074be40bb87775213e5c822f33d540c83cf104eb84a881d85eabec1b1233c7738f5c7f708a5791') +arch=(any) +depends=(xclip python-setuptools) +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha512sums=(39724b619d12af4447d88ba48e188b329a6cee8c82617a78b6074be40bb87775213e5c822f33d540c83cf104eb84a881d85eabec1b1233c7738f5c7f708a5791) + +build () { + cd "xerox-${pkgver}" + python setup.py build +} package () { cd "xerox-${pkgver}" - python3 setup.py install --optimize=1 --root="${pkgdir}" + python setup.py install --optimize=1 --root="${pkgdir}" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |