# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org> pkgname=dooble pkgver=1.41 pkgrel=2 pkgdesc='A safe WebKit Web browser' url=http://dooble.sourceforge.net/ arch=(i386 x86_64) license=(GPL2) makedepends=(qt4 svn) options=(!emptydir) build() { cd "$srcdir" svn co "https://dooble.svn.sourceforge.net/svnroot/dooble" dooble sed -i 's_-Werror__g' dooble.pro qmake-qt4 -o Makefile dooble.pro make } package() { cd "$srcdir/dooble/trunk/browser/" make INSTALL_ROOT="$pkgdir" install msg "Fixing file structure" mkdir "$pkgdir/opt" mv "$pkgdir/usr/local/dooble" "$pkgdir/opt" mv "$pkgdir/usr/local/include" "$pkgdir/usr" rmdir "$pkgdir/usr/local/" || echo "Cannot remove \$pkgdir/usr/local/" msg "Editing files for the file structure modification" sed -i s_'/usr/local/dooble'_'/opt/dooble'_g "$pkgdir/opt/dooble/dooble.sh" sed -i s_'/usr/local/dooble/Lib\x00'_'/opt/dooble/Lib\x00\x00\x00\x00\x00\x00\x00'_g "$pkgdir/opt/dooble/Dooble" msg "Renaming \$pkgdir/opt/dooble/dooble.sh to \$pkgdir/opt/dooble/dooble" mv "$pkgdir/opt/dooble/dooble.sh" "$pkgdir/opt/dooble/dooble" }