[arch-commits] Commit in (sip sip/repos sip/trunk sip/trunk/PKGBUILD)

Andrea Scarpino andrea at archlinux.org
Tue Jan 18 21:57:44 UTC 2011


    Date: Tuesday, January 18, 2011 @ 16:57:43
  Author: andrea
Revision: 106738

add a sip package to remove conflicts between python-sip and python2-sip (FS#22391)

Added:
  sip/
  sip/repos/
  sip/trunk/
  sip/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

Added: sip/trunk/PKGBUILD
===================================================================
--- sip/trunk/PKGBUILD	                        (rev 0)
+++ sip/trunk/PKGBUILD	2011-01-18 21:57:43 UTC (rev 106738)
@@ -0,0 +1,40 @@
+# $Id$
+# Maintainer: Andrea Scarpino <andrea at archlinux.org>
+
+pkgbase=sip
+pkgname=('sip' 'python-sip')
+pkgver=4.12
+pkgrel=3
+pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
+arch=('i686' 'x86_64')
+url="http://www.riverbankcomputing.com/software/sip/"
+license=('custom:"sip"')
+makedepends=('python' 'gcc-libs')
+source=("http://www.riverbankcomputing.com/static/Downloads/sip4/${pkgbase}-${pkgver}.tar.gz")
+md5sums=('8a0998fbaf34bdab2c15af3d4fa3bc0e')
+
+build() {
+  cd ${srcdir}/${pkgbase}-${pkgver}
+
+  python configure.py CFLAGS="${CFLAGS}" LFLAGS="${LDFLAGS}"
+  make
+}
+
+package_sip() {
+  pkgdesc="A tool that makes it easy to create Python bindings for C and C++ libraries"
+  
+  cd ${srcdir}/${pkgbase}-${pkgver}
+  install -Dm755 sipgen/sip ${pkgdir}/usr/bin/sip
+  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
+
+package_python-sip() {
+  pkgdesc="Python 3 bindings for sip"
+  depends=('sip' 'python')
+
+  cd ${srcdir}/${pkgbase}-${pkgver}
+  make DESTDIR=${pkgdir} install
+
+  # Provided by sip package
+  rm ${pkgdir}/usr/bin/sip
+}


Property changes on: sip/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id




More information about the arch-commits mailing list