PKGBUILDs/extra/stellarium/PKGBUILD
2009-10-09 21:23:22 -05:00

33 lines
1.1 KiB
Bash

# $Id: PKGBUILD 44929 2009-07-05 13:04:35Z giovanni $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
pkgname=stellarium
pkgver=0.10.2
pkgrel=3
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>=4.5.1' 'openssl')
makedepends=('cmake' 'boost')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" \
'stellarium.desktop' 'stellarium.png')
md5sums=('c544fff9e75e9317055075b658ae5924'
'b4f9ebd082c4e112c2bbfac9f2c8465d'
'134ab08e73f4f5d995a7931a7957b7a3')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE || return 1
make || return 1
make DESTDIR=${pkgdir} install || return 1
# install desktop file & pixmap
install -Dm644 ${srcdir}/stellarium.desktop \
${pkgdir}/usr/share/applications/stellarium.desktop || return 1
install -Dm644 ${srcdir}/stellarium.png \
${pkgdir}/usr/share/pixmaps/stellarium.png || return 1
}