From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/stellarium/PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++ extra/stellarium/libpng14.patch | 21 ++++++++++++++++++++ extra/stellarium/stellarium.desktop | 9 +++++++++ extra/stellarium/stellarium.png | Bin 0 -> 18780 bytes 4 files changed, 68 insertions(+) create mode 100644 extra/stellarium/PKGBUILD create mode 100644 extra/stellarium/libpng14.patch create mode 100644 extra/stellarium/stellarium.desktop create mode 100644 extra/stellarium/stellarium.png (limited to 'extra/stellarium') diff --git a/extra/stellarium/PKGBUILD b/extra/stellarium/PKGBUILD new file mode 100644 index 000000000..9e8f6d8b1 --- /dev/null +++ b/extra/stellarium/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 108873 2011-02-04 15:03:02Z ronald $ +# Maintainer: Ronald van Haren +# Contributor: Damir Perisa + +pkgname=stellarium +pkgver=0.10.6 +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' 'mesa' 'libgl' 'freetype2' 'qt' 'openssl') +makedepends=('cmake' 'boost') +source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + stellarium.desktop + stellarium.png) +md5sums=('daab49529f0ad76efe871b639ac79295' + 'b4f9ebd082c4e112c2bbfac9f2c8465d' + '134ab08e73f4f5d995a7931a7957b7a3') + +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/extra/stellarium/libpng14.patch b/extra/stellarium/libpng14.patch new file mode 100644 index 000000000..7ed1da689 --- /dev/null +++ b/extra/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/extra/stellarium/stellarium.desktop b/extra/stellarium/stellarium.desktop new file mode 100644 index 000000000..1b82b18bd --- /dev/null +++ b/extra/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/extra/stellarium/stellarium.png b/extra/stellarium/stellarium.png new file mode 100644 index 000000000..08bce127c Binary files /dev/null and b/extra/stellarium/stellarium.png differ -- cgit v1.2.3-54-g00ecf