summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 15 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 98b3c2957ce..4d639d30920 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,30 @@ validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B')
# Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3
# News updates for packages can be followed at https://devblog.square-r00t.net
pkgname=python-libguestfs
-pkgver=1.38.0
-pkgrel=2
+pkgver=1.38.1
+pkgrel=1
pkgdesc="Python bindings for libguestfs"
arch=('any')
url="http://libguestfs.org/"
license=('LGPL3')
_pkgname=guestfs
makedepends=('python-setuptools' 'python2-setuptools' 'libguestfs')
+depends=('python' 'libguestfs')
source=("http://download.libguestfs.org/python/${_pkgname}-${pkgver}.tar.gz"
- "${_pkgname}-${pkgver}.tar.gz.sig")
-sha512sums=('35aa80c6889fd11aeac364436e6dfe5199b5a9771937085a45c9cc1d6943559cd33fda7e28d62f54ba06e10b5f0f8e462dc94d35621c7da3bc82467f60d988cd'
+ "python3_fix.patch"
+ "${_pkgname}-${pkgver}.tar.gz.sig"
+ "python3_fix.patch")
+sha512sums=('0e8ddbfd9d7cd737728434863dfa32c6089adde28bf5cac34229cb114096ad493cacc46c78fffbc2edb708faafe5156a101d6a28bd4dfb8d32d927691df10120'
+ '8e67eda29a5663e7da428a76f2884d6140a70591568a30cdcd7a735631bc170efd6cca740da55b6523a652c3451dcb2215a248e6fea80339ee318a281756b0f5'
+ 'SKIP'
'SKIP')
-package_python-libguestfs() {
- depends=('python' 'libguestfs')
+prepare() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ patch -p1 < ${srcdir}/python3_fix.patch
+}
+
+package() {
cd "${srcdir}/${_pkgname}-${pkgver}"
python setup.py install --root="${pkgdir}" --optimize=1