[arch-commits] Commit in stellarium/repos (8 files)

Anatol Pomozov anatolik at archlinux.org
Mon Mar 21 18:21:11 UTC 2016


    Date: Monday, March 21, 2016 @ 19:21:11
  Author: anatolik
Revision: 262207

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

Added:
  stellarium/repos/testing-i686/
  stellarium/repos/testing-i686/PKGBUILD
    (from rev 262206, stellarium/trunk/PKGBUILD)
  stellarium/repos/testing-i686/libpng14.patch
    (from rev 262206, stellarium/trunk/libpng14.patch)
  stellarium/repos/testing-i686/stellarium.install
    (from rev 262206, stellarium/trunk/stellarium.install)
  stellarium/repos/testing-x86_64/
  stellarium/repos/testing-x86_64/PKGBUILD
    (from rev 262206, stellarium/trunk/PKGBUILD)
  stellarium/repos/testing-x86_64/libpng14.patch
    (from rev 262206, stellarium/trunk/libpng14.patch)
  stellarium/repos/testing-x86_64/stellarium.install
    (from rev 262206, stellarium/trunk/stellarium.install)

-----------------------------------+
 testing-i686/PKGBUILD             |   30 ++++++++++++++++++++++++++++++
 testing-i686/libpng14.patch       |   21 +++++++++++++++++++++
 testing-i686/stellarium.install   |   14 ++++++++++++++
 testing-x86_64/PKGBUILD           |   30 ++++++++++++++++++++++++++++++
 testing-x86_64/libpng14.patch     |   21 +++++++++++++++++++++
 testing-x86_64/stellarium.install |   14 ++++++++++++++
 6 files changed, 130 insertions(+)

Copied: stellarium/repos/testing-i686/PKGBUILD (from rev 262206, stellarium/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-03-21 18:21:11 UTC (rev 262207)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+
+pkgname=stellarium
+pkgver=0.14.3
+pkgrel=1
+pkgdesc="A stellarium with great graphics and a nice database of sky-objects"
+arch=("i686" "x86_64")
+url="http://stellarium.free.fr/"
+license=('GPL2')
+depends=('libpng' 'glu' 'libgl' 'freetype2' 'openssl' 'qt5-script'
+	'desktop-file-utils' 'xdg-utils' 'phonon' 'qt5-serialport')
+install=stellarium.install
+makedepends=('cmake' 'boost' 'mesa' 'mesa-libgl' 'qt5-tools')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+sha1sums=('50e9e2555316df5ae64230361c8970d89385b0f3')
+	
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+ 
+  make DESTDIR="${pkgdir}" install
+}

Copied: stellarium/repos/testing-i686/libpng14.patch (from rev 262206, stellarium/trunk/libpng14.patch)
===================================================================
--- testing-i686/libpng14.patch	                        (rev 0)
+++ testing-i686/libpng14.patch	2016-03-21 18:21:11 UTC (rev 262207)
@@ -0,0 +1,21 @@
+diff -Naur stellarium-0.10.2-orig/src/core/StelTextureMgr.cpp stellarium-0.10.2/src/core/StelTextureMgr.cpp
+--- stellarium-0.10.2-orig/src/core/StelTextureMgr.cpp	2010-01-21 17:04:57.000000000 -0500
++++ stellarium-0.10.2/src/core/StelTextureMgr.cpp	2010-01-21 17:06:55.000000000 -0500
+@@ -513,7 +513,7 @@
+ 	fread (magic, 1, sizeof (magic), fp);
+ 
+ 	/* check for valid magic number */
+-	if (!png_check_sig (magic, sizeof (magic)))
++	if (png_sig_cmp (magic, 0, sizeof (magic)))
+ 	{
+ 		qWarning() << "error: \"" << filename << "\" is not a valid PNG image!";
+ 		fclose (fp);
+@@ -576,7 +576,7 @@
+ 	/* convert 1-2-4 bits grayscale images to 8 bits
+ 	   grayscale. */
+ 	if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+-		png_set_gray_1_2_4_to_8 (png_ptr);
++		png_set_expand_gray_1_2_4_to_8 (png_ptr);
+ 
+ 	if (png_get_valid (png_ptr, info_ptr, PNG_INFO_tRNS))
+ 		png_set_tRNS_to_alpha (png_ptr);

Copied: stellarium/repos/testing-i686/stellarium.install (from rev 262206, stellarium/trunk/stellarium.install)
===================================================================
--- testing-i686/stellarium.install	                        (rev 0)
+++ testing-i686/stellarium.install	2016-03-21 18:21:11 UTC (rev 262207)
@@ -0,0 +1,14 @@
+pkgname=stellarium
+
+post_install() {
+  update-desktop-database -q
+  xdg-icon-resource forceupdate
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}

Copied: stellarium/repos/testing-x86_64/PKGBUILD (from rev 262206, stellarium/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-03-21 18:21:11 UTC (rev 262207)
@@ -0,0 +1,30 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa at bluewin.ch>
+
+pkgname=stellarium
+pkgver=0.14.3
+pkgrel=1
+pkgdesc="A stellarium with great graphics and a nice database of sky-objects"
+arch=("i686" "x86_64")
+url="http://stellarium.free.fr/"
+license=('GPL2')
+depends=('libpng' 'glu' 'libgl' 'freetype2' 'openssl' 'qt5-script'
+	'desktop-file-utils' 'xdg-utils' 'phonon' 'qt5-serialport')
+install=stellarium.install
+makedepends=('cmake' 'boost' 'mesa' 'mesa-libgl' 'qt5-tools')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz)
+sha1sums=('50e9e2555316df5ae64230361c8970d89385b0f3')
+	
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+ 
+  make DESTDIR="${pkgdir}" install
+}

Copied: stellarium/repos/testing-x86_64/libpng14.patch (from rev 262206, stellarium/trunk/libpng14.patch)
===================================================================
--- testing-x86_64/libpng14.patch	                        (rev 0)
+++ testing-x86_64/libpng14.patch	2016-03-21 18:21:11 UTC (rev 262207)
@@ -0,0 +1,21 @@
+diff -Naur stellarium-0.10.2-orig/src/core/StelTextureMgr.cpp stellarium-0.10.2/src/core/StelTextureMgr.cpp
+--- stellarium-0.10.2-orig/src/core/StelTextureMgr.cpp	2010-01-21 17:04:57.000000000 -0500
++++ stellarium-0.10.2/src/core/StelTextureMgr.cpp	2010-01-21 17:06:55.000000000 -0500
+@@ -513,7 +513,7 @@
+ 	fread (magic, 1, sizeof (magic), fp);
+ 
+ 	/* check for valid magic number */
+-	if (!png_check_sig (magic, sizeof (magic)))
++	if (png_sig_cmp (magic, 0, sizeof (magic)))
+ 	{
+ 		qWarning() << "error: \"" << filename << "\" is not a valid PNG image!";
+ 		fclose (fp);
+@@ -576,7 +576,7 @@
+ 	/* convert 1-2-4 bits grayscale images to 8 bits
+ 	   grayscale. */
+ 	if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+-		png_set_gray_1_2_4_to_8 (png_ptr);
++		png_set_expand_gray_1_2_4_to_8 (png_ptr);
+ 
+ 	if (png_get_valid (png_ptr, info_ptr, PNG_INFO_tRNS))
+ 		png_set_tRNS_to_alpha (png_ptr);

Copied: stellarium/repos/testing-x86_64/stellarium.install (from rev 262206, stellarium/trunk/stellarium.install)
===================================================================
--- testing-x86_64/stellarium.install	                        (rev 0)
+++ testing-x86_64/stellarium.install	2016-03-21 18:21:11 UTC (rev 262207)
@@ -0,0 +1,14 @@
+pkgname=stellarium
+
+post_install() {
+  update-desktop-database -q
+  xdg-icon-resource forceupdate
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}



More information about the arch-commits mailing list