[arch-commits] Commit in kstars/repos (6 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Tue Dec 8 12:26:33 UTC 2015


    Date: Tuesday, December 8, 2015 @ 13:26:32
  Author: bpiotrowski
Revision: 253766

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  kstars/repos/staging-i686/
  kstars/repos/staging-i686/PKGBUILD
    (from rev 253764, kstars/trunk/PKGBUILD)
  kstars/repos/staging-i686/kstars.install
    (from rev 253764, kstars/trunk/kstars.install)
  kstars/repos/staging-x86_64/
  kstars/repos/staging-x86_64/PKGBUILD
    (from rev 253764, kstars/trunk/PKGBUILD)
  kstars/repos/staging-x86_64/kstars.install
    (from rev 253764, kstars/trunk/kstars.install)

-------------------------------+
 staging-i686/PKGBUILD         |   47 ++++++++++++++++++++++++++++++++++++++++
 staging-i686/kstars.install   |   11 +++++++++
 staging-x86_64/PKGBUILD       |   47 ++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/kstars.install |   11 +++++++++
 4 files changed, 116 insertions(+)

Copied: kstars/repos/staging-i686/PKGBUILD (from rev 253764, kstars/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2015-12-08 12:26:32 UTC (rev 253766)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonamrs at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kstars
+pkgver=15.08.3
+pkgrel=2
+pkgdesc="Desktop Planetarium"
+url="http://kde.org/applications/education/kstars/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdeedu')
+depends=('wcslib' 'libindi' 'kplotting' 'knewstuff' 'qt5-multimedia' 'kinit' 'ktexteditor')
+makedepends=('extra-cmake-modules' 'python' 'kdoctools' 'eigen' 'xplanet')
+optdepends=('xplanet: XPlanet support')
+install=${pkgname}.install
+replaces=('kdeedu-kstars')
+conflicts=('kdeedu-kstars')
+source=("http://download.kde.org/stable/applications/${pkgver}/src/kstars-${pkgver}.tar.xz")
+sha1sums=('22e8be00eb262a979ae57c9a5f4d36a9809514ec')
+
+prepare() {
+  mkdir -p build
+
+# Use python2
+  cd $pkgname-$pkgver
+  sed -e 's|"python"|"python2"|' -i kstars/skycomponents/supernovaecomponent.cpp 
+}
+
+build() {
+  cd build
+  cmake ../kstars-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|g' \
+    "${pkgdir}"/usr/share/kstars/scripts/supernova_updates_parser.py
+}

Copied: kstars/repos/staging-i686/kstars.install (from rev 253764, kstars/trunk/kstars.install)
===================================================================
--- staging-i686/kstars.install	                        (rev 0)
+++ staging-i686/kstars.install	2015-12-08 12:26:32 UTC (rev 253766)
@@ -0,0 +1,11 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}

Copied: kstars/repos/staging-x86_64/PKGBUILD (from rev 253764, kstars/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2015-12-08 12:26:32 UTC (rev 253766)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Felix Yan <felixonamrs at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kstars
+pkgver=15.08.3
+pkgrel=2
+pkgdesc="Desktop Planetarium"
+url="http://kde.org/applications/education/kstars/"
+arch=('i686' 'x86_64')
+license=('GPL' 'LGPL' 'FDL')
+groups=('kde-applications' 'kdeedu')
+depends=('wcslib' 'libindi' 'kplotting' 'knewstuff' 'qt5-multimedia' 'kinit' 'ktexteditor')
+makedepends=('extra-cmake-modules' 'python' 'kdoctools' 'eigen' 'xplanet')
+optdepends=('xplanet: XPlanet support')
+install=${pkgname}.install
+replaces=('kdeedu-kstars')
+conflicts=('kdeedu-kstars')
+source=("http://download.kde.org/stable/applications/${pkgver}/src/kstars-${pkgver}.tar.xz")
+sha1sums=('22e8be00eb262a979ae57c9a5f4d36a9809514ec')
+
+prepare() {
+  mkdir -p build
+
+# Use python2
+  cd $pkgname-$pkgver
+  sed -e 's|"python"|"python2"|' -i kstars/skycomponents/supernovaecomponent.cpp 
+}
+
+build() {
+  cd build
+  cmake ../kstars-${pkgver} \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DBUILD_TESTING=OFF \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+  make
+}
+
+package() {
+  cd build
+  make DESTDIR="${pkgdir}" install
+
+  sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|g' \
+    "${pkgdir}"/usr/share/kstars/scripts/supernova_updates_parser.py
+}

Copied: kstars/repos/staging-x86_64/kstars.install (from rev 253764, kstars/trunk/kstars.install)
===================================================================
--- staging-x86_64/kstars.install	                        (rev 0)
+++ staging-x86_64/kstars.install	2015-12-08 12:26:32 UTC (rev 253766)
@@ -0,0 +1,11 @@
+post_install() {
+	xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+	post_install
+}
+
+post_remove() {
+	post_install
+}



More information about the arch-commits mailing list