[arch-commits] Commit in python-cairo/trunk (PKGBUILD)

Jan de Groot jgc at archlinux.org
Mon Jan 23 13:58:46 UTC 2017


    Date: Monday, January 23, 2017 @ 13:58:45
  Author: jgc
Revision: 287212

upgpkg: python-cairo 1.10.0-8

Build with more recent waf (FS#52587)

Modified:
  python-cairo/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-23 13:49:52 UTC (rev 287211)
+++ PKGBUILD	2017-01-23 13:58:45 UTC (rev 287212)
@@ -4,19 +4,21 @@
 
 pkgname=python-cairo
 pkgver=1.10.0
-_waf_version=1.7.15
-pkgrel=7
+_waf_version=1.9.7
+pkgrel=8
 pkgdesc="Python bindings for the cairo graphics library"
 arch=('i686' 'x86_64')
-url="http://www.cairographics.org/pycairo"
+url="https://www.cairographics.org/pycairo"
 license=('LGPL3')
 depends=('python' 'cairo')
-source=(http://cairographics.org/releases/pycairo-${pkgver}.tar.bz2
+source=(https://www.cairographics.org/releases/pycairo-${pkgver}.tar.bz2
         https://waf.io/waf-${_waf_version})
 md5sums=('e6fd3f2f1e6a72e0db0868c4985669c5'
-         '2ba0e10baf44db334e3baa39e59688db')
+         '36161654a112bd6a721835dc005ea069')
+sha1sums=('b4283aa1cc9aafd12fd72ad371303a486da1d014'
+          'f0b47d139d837eb247320495a535ba3aa24d0e3c')
 
-build() {
+prepare() {
   cd pycairo-${pkgver}
 
   # use newer waf
@@ -24,8 +26,13 @@
 
   # fix compatibility with newer waf
   # http://cgit.freedesktop.org/pycairo/commit/?id=c57cd129407c904f8c2f752a59d0183df7b01a5e
-  sed -e "s/ctx.\(tool_options\|check_tool\)(/ctx.load(/" -i wscript
-  
+  sed -e "s/ctx.\(tool_options\|check_tool\)(/ctx.load(/" \
+      -e "s/\bcompiler_cc\b/compiler_c/g" \
+      -i wscript
+}
+
+build() {
+  cd pycairo-${pkgver}
   # Ensure that ./waf has created the cached unpacked version
   # of the wafadmin source tree.
   # This will be created to a subdirectory like
@@ -32,7 +39,7 @@
   #    .waf3-1.5.18-a7b91e2a913ce55fa6ecdf310df95752
   python3 ./waf --version
 
-  ./waf configure --prefix=/usr
+  ./waf configure --prefix=/usr --libdir=/usr/lib
   ./waf build
 }
 



More information about the arch-commits mailing list