Morten Juhl-Johansen Zölde-Fejér wrote:
On Mon, 07 Sep 2009 21:31:35 +0100
Pierre Cazenave <[email protected]> wrote:
I just submitted midori, but I've noticed that I still had the chown
command at line 60 commented out. I've run the script with the chown
command, and all is as expected.
I can resubmit it if someone can delete the existing archive from
pending.
Thanks,
Pierre
I actually had a build for that waiting.
You have submitted a Webkitgtk package too?
Yours,
Morten
__
Morten Juhl-Johansen Zölde-Fejér
http://syntaktisk.dk * [email protected]
_______________________________________________
SlackBuilds-users mailing list
[email protected]
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/
No, I'm using the one that's in the repo at the moment. I emailed the
midori maintainer this morning with a suggestion for an improvement to
the script and he asked if I wanted to maintain it. I've just fiddled
with the script a bit, changing a couple of options and enabling support
for libunique, for which there is a slackbuild at SBo. I've attached the
script in case you wanted to take a look.
I'm just double checking the script on 64bit, but all seems well on the
32bit.
Pierre
#!/bin/sh
# Slackware build script for midori
# Copyright 2008 Andrew Brouwers <[email protected]>
# Copyright 2009 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
#
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
set -eu
PRGNAM=midori
VERSION=0.1.9
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG=_SBo}
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
DOCS="AUTHORS COPYING ChangeLog EXPAT HACKING INSTALL TODO TRANSLATE
docs/user/midori.txt"
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
fi
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400
\) \
-exec chmod 644 {} \;
export CCFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
./waf configure \
--prefix=/usr \
--libdir=/usr/lib$LIBDIRSUFFIX \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--sysconfdir=/etc \
--localstatedir=/var \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--enable-unique \
--enable-addons
./waf build
./waf install --destdir=$PKG
# Docs
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
# Move errant docs
mv $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
rmdir $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM
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.${PKGTYPE:-tgz}
_______________________________________________
SlackBuilds-users mailing list
[email protected]
http://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - http://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - http://slackbuilds.org/faq/