desktop/stellarium/PKGBUILD

38 lines
1.2 KiB
Bash
Raw Normal View History

2012-09-23 23:45:23 +08:00
pkgname=stellarium
2016-08-02 02:19:19 +08:00
pkgver=0.15.0
pkgrel=2
2012-09-23 23:45:23 +08:00
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')
depends=('libpng' 'libgl' 'glu' 'openssl' 'zlib' 'gettext' 'qt5-script'
2016-03-23 18:33:29 +08:00
'xdg-utils' 'freetype2' 'phonon-qt5' 'qt5-multimedia' 'desktop-file-utils' 'qt5-serialport')
2014-09-20 15:37:30 +08:00
makedepends=('cmake' 'boost' 'mesa' 'mesa-libgl' 'qt5-tools')
2012-09-23 23:45:23 +08:00
categories=('education')
2015-02-22 21:09:59 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
2016-08-02 02:19:19 +08:00
sha256sums=('74d0e3a69fcbaf1c6278f601a44497fd3e9f2de7dfa11a60197d3afb68288746')
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 \
2015-04-30 23:16:53 +08:00
"${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/stellarium.png"
2013-05-28 01:59:29 +08:00
done
2012-09-23 23:45:23 +08:00
}