# # Apps Packages for Chakra, part of chakra-project.org # # Maintainer: Martín González pkgname=stellarium pkgver=0.12.4 pkgrel=1 pkgdesc="A stellarium with great graphics and a nice database of sky-objects" arch=('x86_64') url="http://www.stellarium.org/" screenshot=('http://www.stellarium.org/img/screenshots/0.10-from-mars.jpg') license=('GPL2') depends=('libpng' 'libgl' 'qt' 'openssl' 'zlib' 'gettext' 'phonon') makedepends=('cmake' 'boost' 'mesa') categories=('education') source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz") md5sums=('4d2ec96b9b4d9c8fc722f864409cf4fa') build() { cd ${srcdir}/${pkgname}-${pkgver} cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_SOUND=1 make } package() { cd ${srcdir}/${pkgname}-${pkgver} make DESTDIR=${pkgdir} install # install desktop file install -Dm644 ${srcdir}/${pkgname}-${pkgver}/data/stellarium.desktop \ ${pkgdir}/usr/share/applications/stellarium.desktop # install desktop icons for i in 16 32 48 64 128 256 512; do install -Dm644 ${srcdir}/${pkgname}-${pkgver}/data/icons/${i}x${i}/stellarium.png \ ${pkgdir}/usr/share/icons/hicolor/apps/${i}x${i}/stellarium.png done }