diff options
author | Alan Alberghini <414N@slacky.it> | 2010-05-12 17:36:43 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-12 17:36:43 +0200 |
commit | 8b72deef213907f7743fc9d6c7c6e776da4d1abb (patch) | |
tree | eecd5d698e17fd4507d7cea549e6f7a489a94bf8 /academic/stellarium/stellarium.SlackBuild | |
parent | 58114d9c9b8b8fc2367526690d05814f3cc46a5f (diff) |
academic/stellarium: Updated for version 0.10.2
Diffstat (limited to 'academic/stellarium/stellarium.SlackBuild')
-rw-r--r-- | academic/stellarium/stellarium.SlackBuild | 56 |
1 files changed, 23 insertions, 33 deletions
diff --git a/academic/stellarium/stellarium.SlackBuild b/academic/stellarium/stellarium.SlackBuild index 7259293f260c0..1238d17911323 100644 --- a/academic/stellarium/stellarium.SlackBuild +++ b/academic/stellarium/stellarium.SlackBuild @@ -22,10 +22,8 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -set -e - PRGNAM=stellarium -VERSION=0.9.1 +VERSION=0.10.2 ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,15 +33,6 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -# The path containg qt4. It will be added to PATH. -# CMake needs qt4 qmake. -# You have to specify it only if you do not have qt4 executables already inside PATH and -# cmake fails to find qt4. - -QT4PATH="" - -# CFLAGS adjustment. - if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then @@ -54,46 +43,47 @@ elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" fi +set -e + rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz - -patch -p0 < $CWD/boost1.36.patch - cd $PRGNAM-$VERSION chown -R root:root . chmod -R a-s,u+w,go+r-w . -if [ "$QT4PATH" ] -then - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - PATH="$QT4PATH/bin":"$PATH" \ - cmake -DCMAKE_INSTALL_PREFIX=/usr . -else - CFLAGS="$SLKCFLAGS" \ - CXXFLAGS="$SLKCFLAGS" \ - cmake -DCMAKE_INSTALL_PREFIX=/usr . -fi - -make -make install DESTDIR=$PKG - -# Strip executables +mkdir build && cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_BUILD_TYPE="release" .. + make + make install DESTDIR=$PKG +cd - ( cd "$PKG" - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ + xargs strip --strip-unneeded 2> /dev/null ) +mv $PKG/usr/share/man $PKG/usr +gzip -9 $PKG/usr/man/man?/*.? + +mkdir -p $PKG/usr/share/{applications,pixmaps} +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop +cp -a doc/images/$PRGNAM-logo.png $PKG/usr/share/pixmaps/$PRGNAM.png + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING ChangeLog INSTALL README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |