[arch-commits] Commit in soprano (kde-unstable kde-unstable/PKGBUILD)

Andrea Scarpino andrea at nymeria.archlinux.org
Sat Dec 21 18:28:33 UTC 2013


    Date: Saturday, December 21, 2013 @ 19:28:32
  Author: andrea
Revision: 202419

KF5

Added:
  soprano/kde-unstable/
Modified:
  soprano/kde-unstable/PKGBUILD

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++------------
 1 file changed, 45 insertions(+), 12 deletions(-)

Modified: kde-unstable/PKGBUILD
===================================================================
--- trunk/PKGBUILD	2013-12-21 17:49:24 UTC (rev 202412)
+++ kde-unstable/PKGBUILD	2013-12-21 18:28:32 UTC (rev 202419)
@@ -2,34 +2,67 @@
 # Maintainer: Andrea Scarpino <andrea at archlinux.org>
 # Contributor: Tobias Powalowski <tpowa at archlinux.org>
 
-pkgname=soprano
-pkgver=2.9.4
+pkgbase=soprano
+pkgname=soprano-qt5
+#pkgname=('soprano-qt4' 'soprano-qt5')
+pkgver=v2.9.3.r90.g3e00d37
 pkgrel=1
-pkgdesc='A library which provides a highly usable object-oriented C++/Qt4 framework for RDF data'
 arch=('i686' 'x86_64')
 url='http://soprano.sourceforge.net/'
 license=('GPL' 'LGPL')
-depends=('qt4' 'libiodbc' 'virtuoso-base' 'redland')
-makedepends=('cmake' 'java-environment' 'doxygen')
-source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('91413e5783efeee0beb747ea4c5c9ef0')
+makedepends=('cmake' 'java-environment' 'doxygen' 'qt5-base' 'libiodbc'
+             'virtuoso-base' 'redland' 'git')
+#makedepends=('cmake' 'java-environment' 'doxygen' 'qt4' 'qt5-base' 'libiodbc'
+#             'virtuoso-base' 'redland')
+source=("git://anongit.kde.org/soprano.git")
+#source=("http://downloads.sourceforge.net/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2")
+md5sums=('SKIP')
 
+pkgver() {
+  cd ${pkgbase}
+  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
 prepare() {
   mkdir build
+  mkdir build-qt5
 }
 
 build() {
-  cd build
+#  cd build
   # we need the rpath
-  cmake ../${pkgname}-${pkgver} \
+#  cmake ../${pkgbase}-${pkgver} \
+#    -DCMAKE_BUILD_TYPE=Release \
+#    -DCMAKE_SKIP_RPATH=OFF \
+#    -DCMAKE_INSTALL_PREFIX=/usr \
+#    -DSOPRANO_DISABLE_CLUCENE_INDEX=ON \
+#    -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4
+
+  cd build-qt5
+  cmake ../${pkgbase} \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_SKIP_RPATH=OFF \
-    -DCMAKE_INSTALL_PREFIX=/usr \
-    -DSOPRANO_DISABLE_CLUCENE_INDEX=ON
+    -DCMAKE_INSTALL_PREFIX=/opt/kf5 \
+    -DSOPRANO_DISABLE_CLUCENE_INDEX=ON \
+    -DQT5_BUILD=TRUE
   make
 }
 
-package() {
+package_soprano-qt4() {
+  pkgdesc='A library which provides a highly usable object-oriented C++/Qt4 framework for RDF data'
+  depends=('qt4' 'libiodbc' 'virtuoso-base' 'redland')
+  conflicts=('soprano')
+  provides=('soprano')
+  replaces=('soprano')
+
   cd build
   make DESTDIR="${pkgdir}" install
 }
+
+package_soprano-qt5() {
+  pkgdesc='A library which provides a highly usable object-oriented C++/Qt5 framework for RDF data'
+  depends=('qt5-base' 'libiodbc' 'virtuoso-base' 'redland')
+
+  cd build-qt5
+  make DESTDIR="${pkgdir}" install
+}




More information about the arch-commits mailing list