desktop/stellarium/PKGBUILD

51 lines
1.5 KiB
Bash
Raw Normal View History

2012-09-23 23:45:23 +08:00
#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: Martín González <koteccr at gmail dot com>
pkgname=stellarium
2014-10-27 05:28:15 +08:00
pkgver=0.13.1
2012-09-23 23:45:23 +08:00
pkgrel=1
pkgdesc="A stellarium with great graphics and a nice database of sky-objects"
2013-05-28 01:59:29 +08:00
arch=('x86_64')
2012-09-23 23:45:23 +08:00
url="http://www.stellarium.org/"
2012-09-23 23:57:04 +08:00
screenshot=('http://www.stellarium.org/img/screenshots/0.10-from-mars.jpg')
2012-09-23 23:45:23 +08:00
license=('GPL2')
2014-09-20 15:37:30 +08:00
depends=('libpng' 'libgl' 'qt5-quick1' 'glu' 'openssl' 'zlib' 'gettext'
'xdg-utils' 'freetype2' 'phonon' 'qt5-multimedia')
makedepends=('cmake' 'boost' 'mesa' 'mesa-libgl' 'qt5-tools')
2012-09-23 23:45:23 +08:00
categories=('education')
2014-09-20 15:37:30 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
"stellarium-desktop.patch")
2014-10-27 05:28:15 +08:00
sha256sums=('ceb69e058545236e46406adbb8e2cbb0a26078eae471a945df09131f61cc3278'
2014-09-20 15:37:30 +08:00
'50485fc974ce965039f825ca33f4bb4cf5a4dea76b4fce1a635c3027c287c7eb')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ../stellarium-desktop.patch
}
2013-05-28 01:59:29 +08:00
2012-09-23 23:45:23 +08:00
build() {
2014-09-20 15:37:30 +08:00
cd ${pkgname}-${pkgver}
2012-09-23 23:45:23 +08:00
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE -DENABLE_SOUND=1
2012-09-23 23:45:23 +08:00
make
}
package() {
2014-09-20 15:37:30 +08:00
cd ${pkgname}-${pkgver}
2012-09-23 23:45:23 +08:00
2014-09-20 15:37:30 +08:00
make DESTDIR="${pkgdir}" install
2012-09-23 23:45:23 +08:00
2013-05-28 01:59:29 +08:00
# install desktop file
2014-09-20 15:37:30 +08:00
install -Dm644 data/stellarium.desktop \
"${pkgdir}/usr/share/applications/stellarium.desktop"
2013-05-28 01:59:29 +08:00
# install desktop icons
for i in 16 32 48 64 128 256 512; do
2014-09-20 15:37:30 +08:00
install -Dm644 data/icons/${i}x${i}/stellarium.png \
"${pkgdir}/usr/share/icons/hicolor/apps/${i}x${i}/stellarium.png"
2013-05-28 01:59:29 +08:00
done
2012-09-23 23:45:23 +08:00
}