summaryrefslogtreecommitdiff
path: root/testing/stellarium
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-13 00:57:48 -0700
committerroot <root@rshg054.dnsready.net>2012-10-13 00:57:48 -0700
commit21c295a86a10a3cd59802b2cf3ab7c24ebf0c608 (patch)
treeef49797b1f76586e9f8281e301a4923d90f29aa7 /testing/stellarium
parent3cfedd8a4ed1e5464ef328d91b1a224aedc07960 (diff)
Sat Oct 13 00:57:48 PDT 2012
Diffstat (limited to 'testing/stellarium')
-rw-r--r--testing/stellarium/PKGBUILD38
-rw-r--r--testing/stellarium/libpng14.patch21
-rw-r--r--testing/stellarium/stellarium.desktop9
-rw-r--r--testing/stellarium/stellarium.pngbin0 -> 18780 bytes
4 files changed, 68 insertions, 0 deletions
diff --git a/testing/stellarium/PKGBUILD b/testing/stellarium/PKGBUILD
new file mode 100644
index 000000000..05a16e1e5
--- /dev/null
+++ b/testing/stellarium/PKGBUILD
@@ -0,0 +1,38 @@
+# $Id: PKGBUILD 168495 2012-10-12 19:14:51Z andyrtr $
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
+
+pkgname=stellarium
+pkgver=0.11.4
+pkgrel=2
+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' 'qt' 'openssl')
+makedepends=('cmake' 'boost' 'mesa')
+source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
+ stellarium.desktop
+ stellarium.png)
+sha1sums=('5b8bfd71b4c3eabbc1db64b71221eeebe6785dbf'
+ 'c9cc79212542238227b5bd6af99f60fe056f4ab2'
+ 'b890d3b6c4dcfcfcc696514202af11b2a50c0fea')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
+ make
+}
+
+package() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ # install desktop file & pixmap
+ install -Dm644 ${srcdir}/stellarium.desktop \
+ ${pkgdir}/usr/share/applications/stellarium.desktop
+ install -Dm644 ${srcdir}/stellarium.png \
+ ${pkgdir}/usr/share/pixmaps/stellarium.png
+}
diff --git a/testing/stellarium/libpng14.patch b/testing/stellarium/libpng14.patch
new file mode 100644
index 000000000..7ed1da689
--- /dev/null
+++ b/testing/stellarium/libpng14.patch
@@ -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);
diff --git a/testing/stellarium/stellarium.desktop b/testing/stellarium/stellarium.desktop
new file mode 100644
index 000000000..1b82b18bd
--- /dev/null
+++ b/testing/stellarium/stellarium.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Stellarium nightsky renderer
+GenericName=Nightsky renderer
+Comment=A real-time nightsky renderer
+Categories=Education;Science;Astronomy;
+Icon=stellarium
+Exec=stellarium
+Terminal=false
+Type=Application
diff --git a/testing/stellarium/stellarium.png b/testing/stellarium/stellarium.png
new file mode 100644
index 000000000..08bce127c
--- /dev/null
+++ b/testing/stellarium/stellarium.png
Binary files differ