summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Perez de Castro2022-08-30 20:51:12 +0300
committerAdrian Perez de Castro2022-08-30 20:51:12 +0300
commitd901836315a4cac7b1db9a69e41b4dac7eb66d21 (patch)
treea3b257d1c81c49d05ed3558510ae01fe63b75ff6
parentdab87ec080ab6563187f54c025c3f0cf121c5579 (diff)
downloadaur-python-xerox.tar.gz
Add missing setuptools dependency, fix build in clean chroot
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD23
2 files changed, 17 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index f2030edcbf52..372a85984e7f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
-
diff --git a/PKGBUILD b/PKGBUILD
index dc1d8458f160..443c77f755b3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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"
}