desktop/stellarium/PKGBUILD
2018-05-09 07:47:22 +01:00

39 lines
1.2 KiB
Bash

pkgname=stellarium
pkgver=0.18.0
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' 'glu' 'openssl' 'zlib' 'gettext' 'qt5-script'
'xdg-utils' 'freetype2' 'phonon-qt5' 'qt5-multimedia' 'desktop-file-utils'
'qt5-serialport' 'qt5-location')
makedepends=('cmake' 'boost' 'mesa' 'qt5-tools')
categories=('education')
source=("https://github.com/Stellarium/stellarium/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('5ad698fbc37b53be0384f677f7a13b07f62b5ac671e92eb90ea5989e1669911a')
build() {
cd ${pkgname}-${pkgver}
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
# install desktop file
install -Dm644 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 data/icons/${i}x${i}/stellarium.png \
"${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/stellarium.png"
done
}