[arch-commits] Commit in marble (7 files)

Antonio Rojas arojas at archlinux.org
Tue Jul 28 19:29:01 UTC 2015


    Date: Tuesday, July 28, 2015 @ 21:29:01
  Author: arojas
Revision: 242608

archrelease: copy kde-unstable to kde-unstable-i686, kde-unstable-x86_64

Added:
  marble/repos/
  marble/repos/kde-unstable-i686/
  marble/repos/kde-unstable-i686/PKGBUILD
    (from rev 242607, marble/kde-unstable/PKGBUILD)
  marble/repos/kde-unstable-i686/marble.install
    (from rev 242607, marble/kde-unstable/marble.install)
  marble/repos/kde-unstable-x86_64/
  marble/repos/kde-unstable-x86_64/PKGBUILD
    (from rev 242607, marble/kde-unstable/PKGBUILD)
  marble/repos/kde-unstable-x86_64/marble.install
    (from rev 242607, marble/kde-unstable/marble.install)

------------------------------------+
 kde-unstable-i686/PKGBUILD         |   74 +++++++++++++++++++++++++++++++++++
 kde-unstable-i686/marble.install   |   13 ++++++
 kde-unstable-x86_64/PKGBUILD       |   74 +++++++++++++++++++++++++++++++++++
 kde-unstable-x86_64/marble.install |   13 ++++++
 4 files changed, 174 insertions(+)

Copied: marble/repos/kde-unstable-i686/PKGBUILD (from rev 242607, marble/kde-unstable/PKGBUILD)
===================================================================
--- repos/kde-unstable-i686/PKGBUILD	                        (rev 0)
+++ repos/kde-unstable-i686/PKGBUILD	2015-07-28 19:29:01 UTC (rev 242608)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+
+pkgbase=marble
+pkgname=(marble libastro)
+pkgver=15.07.80
+pkgrel=1
+pkgdesc="Desktop Globe"
+arch=(i686 x86_64)
+url="https://www.kde.org/applications/system/marble"
+license=(GPL)
+makedepends=(extra-cmake-modules gpsd quazip-qt5 libwlocate phonon-qt5 qt5-webkit krunner kparts knewstuff qt5-tools)
+source=("http://download.kde.org/unstable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz")
+md5sums=('1fe7279c7a9a6bc6695c3c016621e719')
+
+prepare() {
+  mkdir -p build
+
+  # fix installation designer plugins path
+  sed 's|LIB_SUFFIX}/plugins|LIB_SUFFIX}/qt/plugins|g' -i $pkgbase-$pkgver/CMakeLists.txt
+
+  # only build the KDE app
+  sed -e '/mobile/d' \
+      -e '/qt/d'  \
+      -e '/Quick/d' \
+      -e '/touch/d' \
+      -i $pkgname-$pkgver/src/apps/CMakeLists.txt
+}
+
+build() {
+  cd build
+  cmake ../$pkgbase-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLIB_INSTALL_DIR=lib \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+    -DBUILD_TESTING=OFF \
+    -DBUILD_MARBLE_EXAMPLES=OFF \
+    -DBUILD_MARBLE_TOOLS=ON \
+    -DBUILD_MARBLE_TESTS=OFF \
+    -DMOBILE=OFF
+  make
+}
+
+package_libastro() {
+  pkgdesc='Marble astronomy library'
+  depends=(gcc-libs)
+
+  cd build/src/lib/astro
+  make DESTDIR="$pkgdir" install
+}
+
+package_marble() {
+  depends=(libastro qt5-webkit kparts knewstuff hicolor-icon-theme)
+  optdepends=('gpsd: position information via gpsd'
+            'quazip-qt5: reading and displaying .kmz files'
+            'libwlocate: Position information based on neighboring WLAN networks'
+            'phonon-qt5: That enables the use of audio and video content'
+            'krunner: Krunner plugin')
+  conflicts=(kdeedu-marble marble-qt)
+  replaces=(kdeedu-marble 'marble-qt<15.07')
+  groups=(kde-applications kdeedu)
+  install=marble.install
+
+  cd build
+  make DESTDIR="$pkgdir" install
+
+# provided by libastro
+  rm -r "$pkgdir"/usr/include/astro
+  rm "$pkgdir"/usr/lib/libastro.*
+}

Copied: marble/repos/kde-unstable-i686/marble.install (from rev 242607, marble/kde-unstable/marble.install)
===================================================================
--- repos/kde-unstable-i686/marble.install	                        (rev 0)
+++ repos/kde-unstable-i686/marble.install	2015-07-28 19:29:01 UTC (rev 242608)
@@ -0,0 +1,13 @@
+post_install() {
+  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}
+

Copied: marble/repos/kde-unstable-x86_64/PKGBUILD (from rev 242607, marble/kde-unstable/PKGBUILD)
===================================================================
--- repos/kde-unstable-x86_64/PKGBUILD	                        (rev 0)
+++ repos/kde-unstable-x86_64/PKGBUILD	2015-07-28 19:29:01 UTC (rev 242608)
@@ -0,0 +1,74 @@
+# $Id$
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+# Contributor: Gustavo Alvarez <sl1pkn07 at gmail.com>
+
+pkgbase=marble
+pkgname=(marble libastro)
+pkgver=15.07.80
+pkgrel=1
+pkgdesc="Desktop Globe"
+arch=(i686 x86_64)
+url="https://www.kde.org/applications/system/marble"
+license=(GPL)
+makedepends=(extra-cmake-modules gpsd quazip-qt5 libwlocate phonon-qt5 qt5-webkit krunner kparts knewstuff qt5-tools)
+source=("http://download.kde.org/unstable/applications/$pkgver/src/$pkgname-$pkgver.tar.xz")
+md5sums=('1fe7279c7a9a6bc6695c3c016621e719')
+
+prepare() {
+  mkdir -p build
+
+  # fix installation designer plugins path
+  sed 's|LIB_SUFFIX}/plugins|LIB_SUFFIX}/qt/plugins|g' -i $pkgbase-$pkgver/CMakeLists.txt
+
+  # only build the KDE app
+  sed -e '/mobile/d' \
+      -e '/qt/d'  \
+      -e '/Quick/d' \
+      -e '/touch/d' \
+      -i $pkgname-$pkgver/src/apps/CMakeLists.txt
+}
+
+build() {
+  cd build
+  cmake ../$pkgbase-$pkgver \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DLIB_INSTALL_DIR=lib \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+    -DBUILD_TESTING=OFF \
+    -DBUILD_MARBLE_EXAMPLES=OFF \
+    -DBUILD_MARBLE_TOOLS=ON \
+    -DBUILD_MARBLE_TESTS=OFF \
+    -DMOBILE=OFF
+  make
+}
+
+package_libastro() {
+  pkgdesc='Marble astronomy library'
+  depends=(gcc-libs)
+
+  cd build/src/lib/astro
+  make DESTDIR="$pkgdir" install
+}
+
+package_marble() {
+  depends=(libastro qt5-webkit kparts knewstuff hicolor-icon-theme)
+  optdepends=('gpsd: position information via gpsd'
+            'quazip-qt5: reading and displaying .kmz files'
+            'libwlocate: Position information based on neighboring WLAN networks'
+            'phonon-qt5: That enables the use of audio and video content'
+            'krunner: Krunner plugin')
+  conflicts=(kdeedu-marble marble-qt)
+  replaces=(kdeedu-marble 'marble-qt<15.07')
+  groups=(kde-applications kdeedu)
+  install=marble.install
+
+  cd build
+  make DESTDIR="$pkgdir" install
+
+# provided by libastro
+  rm -r "$pkgdir"/usr/include/astro
+  rm "$pkgdir"/usr/lib/libastro.*
+}

Copied: marble/repos/kde-unstable-x86_64/marble.install (from rev 242607, marble/kde-unstable/marble.install)
===================================================================
--- repos/kde-unstable-x86_64/marble.install	                        (rev 0)
+++ repos/kde-unstable-x86_64/marble.install	2015-07-28 19:29:01 UTC (rev 242608)
@@ -0,0 +1,13 @@
+post_install() {
+  xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+  update-desktop-database -q
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}
+



More information about the arch-commits mailing list