From 785790ba726422fe908f55f8d79b26ce6f373423 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 14 Nov 2012 18:17:34 +0100 Subject: Adding dooble!!! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- dooble/PKGBUILD | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 dooble/PKGBUILD diff --git a/dooble/PKGBUILD b/dooble/PKGBUILD new file mode 100644 index 0000000..5762ddb --- /dev/null +++ b/dooble/PKGBUILD @@ -0,0 +1,58 @@ +# -*- shell-script -*- +# Maintainer: Mattias Andrée + +pkgname=dooble +pkgver=1.37 +pkgrel=1 +pkgdesc='A safe WebKit Web browser' +url=http://dooble.sourceforge.net/ +arch=(i686 x86_64) +license=(GPL2) +source=("http://downloads.sourceforge.net/project/dooble/Version%201.37/Dooble_Lin64.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdooble%2Ffiles%2FVersion%25201.37%2F&ts=1352909582&use_mirror=freefr") +md5sums=(3ba01abc425130d9870c81919a909096) + +_sedfiles="dooble.sh qt.conf" + +[ "${CARCH}" == 'i686' ] && + source[0]="http://downloads.sourceforge.net/project/dooble/Version%201.37/Dooble_Lin32.tar.gz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fdooble%2Ffiles%2FVersion%25201.37%2F&ts=1352909582&use_mirror=freefr" && + md5sums[0]=c1aab6e21f387ee4046cf9fe357a151f + + +package() +{ + msg "Moving precompiled files into \$pkgfir" + + mv "$srcdir/usr" "$pkgdir" + + + msg "Fixing file structure" + + mkdir "$pkgdir/opt" + mv "$pkgdir/usr/local/dooble" "$pkgdir/opt" + rmdir "$pkgdir/usr/local/" || echo "Cannot remove \$pkgdir/usr/local/" + rmdir "$pkgdir/usr/" || echo "Cannot remove \$pkgdir/usr/" + + + msg "Editing files for the file structure modification" + + for file in $_sedfiles + do + cp "$pkgdir/opt/dooble/$file" "$pkgdir/opt/dooble/$file~" + sed -e s/'\/usr\/local\/dooble'/'\/opt\/dooble'/g < "$pkgdir/opt/dooble/$file~" > "$pkgdir/opt/dooble/$file" + rm "$pkgdir/opt/dooble/$file~" + done + + for file in "Dooble" + do + cp "$pkgdir/opt/dooble/$file" "$pkgdir/opt/dooble/$file~" + ## hehehe + sed -e s/'\/usr\/local\/dooble\/Lib\x00'/'\/opt\/dooble\/Lib\x00\x00\x00\x00\x00\x00\x00'/g < "$pkgdir/opt/dooble/$file~" > "$pkgdir/opt/dooble/$file" + rm "$pkgdir/opt/dooble/$file~" + done + + + msg "Renaming \$pkgdir/opt/dooble/dooble.sh to \$pkgdir/opt/dooble/dooble" + + mv "$pkgdir/opt/dooble/dooble.sh" "$pkgdir/opt/dooble/dooble" +} + -- cgit v1.2.3-70-g09d2