desktop/stellarium/PKGBUILD

39 lines
1.2 KiB
Bash
Raw Normal View History

2012-09-23 23:45:23 +08:00
pkgname=stellarium
2018-11-01 20:04:56 +08:00
pkgver=0.18.2
2017-01-08 10:18:59 +08:00
pkgrel=1
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'
2017-06-23 08:16:41 +08:00
'xdg-utils' 'freetype2' 'phonon-qt5' 'qt5-multimedia' 'desktop-file-utils'
'qt5-serialport' 'qt5-location')
2018-05-09 14:47:22 +08:00
makedepends=('cmake' 'boost' 'mesa' 'qt5-tools')
2012-09-23 23:45:23 +08:00
categories=('education')
2018-05-09 14:47:22 +08:00
source=("https://github.com/Stellarium/stellarium/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
2018-11-01 20:04:56 +08:00
sha256sums=('7582a8ef96ab673a17a248b97bc9deb69b9d65f07e9689f1761c284e36b028db')
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
2017-01-08 10:18:59 +08:00
cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE
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
}