aboutsummaryrefslogblamecommitdiffstats
path: root/dooble/PKGBUILD
blob: c528aa50d9e4bf96530673a03963b598f72f6f9b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                                                                                                                                                              
                  













































                                                                                                                                                                                                                    
# -*- 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)
depends=(libpng12)

_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"
}