desktop/stellarium/PKGBUILD

38 lines
1.2 KiB
Bash
Raw Normal View History

2012-09-23 23:45:23 +08:00
pkgname=stellarium
2015-04-30 23:16:53 +08:00
pkgver=0.13.3
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'
2015-02-22 21:09:59 +08:00
'xdg-utils' 'freetype2' 'phonon' 'qt5-multimedia' 'desktop-file-utils')
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")
2015-04-30 23:16:53 +08:00
sha512sums=('9d8b8d4e045dd3e8052a7f6af4dd21205c2e66c2e4db254fbb6e897f3df1f049a6e2080f6598210da162917e1f6a3535972c8826e5e696f4ab954a5b26d0d083')
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
}