Browse Source

d/vala: Upgraded to vala-0.40.0.

slackware-14.2
Damien Goutte-Gattat 4 years ago
parent
commit
52745ad3ed
  1. 1
      d/vala/vala-0.12.1.tar.bz2.sha1
  2. 1
      d/vala/vala-0.16.1.tar.xz.sha1
  3. 1
      d/vala/vala-0.40.0.tar.xz.sha256
  4. 45
      d/vala/vala.SlackBuild

1
d/vala/vala-0.12.1.tar.bz2.sha1

@ -1 +0,0 @@
defa61ac7b9f97abe8aac7ad7fb3f80f3c0b9657 vala-0.12.1.tar.bz2

1
d/vala/vala-0.16.1.tar.xz.sha1

@ -1 +0,0 @@
c77b6faee661289996a325dc99adac53f3f6ab69 vala-0.16.1.tar.xz

1
d/vala/vala-0.40.0.tar.xz.sha256

@ -0,0 +1 @@
15888fcb5831917cd67367996407b28fdfc6cd719a30e6a8de38a952a8a48e71 vala-0.40.0.tar.xz

45
d/vala/vala.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2010,2011,2012 Damien Goutte-Gattat
# Copyright (C) 2009-2012,2018 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -23,12 +23,14 @@
# Contact: Damien Goutte-Gattat <dgouttegattat@incenp.org>
#
# Latest vala sourcecode is available at: <http://live.gnome.org/Vala/>.
#
# Depends: ap/graphviz
# Source package infos
NAMESRC=${NAMESRC:-vala}
VERSION=${VERSION:-0.16.1}
VERSION=${VERSION:-0.40.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz}
WGET=${WGET:-http://download.gnome.org/sources/vala/0.16/$ARCHIVE}
WGET=${WGET:-http://download.gnome.org/sources/vala/0.40/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-vala}
@ -75,31 +77,10 @@ if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Get and compile vala-0.12.1
if [ ! -r vala-0.12.1.tar.bz2 ]; then
wget -c -O vala-0.12.1.tar.bz2.part http://download.gnome.org/sources/vala/0.12/vala-0.12.1.tar.bz2
mv vala-0.12.1.tar.bz2.part vala-0.12.1.tar.bz2
fi
sha1sum -c vala-0.12.1.tar.bz2.sha1
cd $TMP
echo "Building vala-0.12.1"
tar xf $CWD/vala-0.12.1.tar.bz2
cd vala-0.12.1
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure --prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--disable-unversioned
make -j $JOBS
make install-strip DESTDIR=$PKG
cd $TMP
rm -rf vala-0.12.1
# Compile current version
# Compile
cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
@ -109,7 +90,10 @@ CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man
--mandir=/usr/man \
--disable-static \
--disable-dependency-tracking \
--build=$ARCH-slackware-linux
make -j $JOBS
make install-strip DESTDIR=$PKG
@ -118,12 +102,17 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYING ChangeLog* MAINTAINERS NEWS README THANKS \
install -m 644 AUTHORS COPYING ChangeLog* NEWS README THANKS \
$PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat >$PKG/install/slack-required <<EOF
graphviz
EOF
# Package the tree
cd $PKG
mkdir -p $OUT

Loading…
Cancel
Save