Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 13th, 2011  |  syntax: None  |  size: 1.38 KB  |  hits: 219  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Terry Mitchell <tcmdvm@charter.net>
  2. #patch added to correct the compiling error using gcc 4.6
  3.  
  4. pkgname=kompozer
  5. pkgver=0.8b3
  6. pkgrel=1
  7. pkgdesc="A Dreamweaver style WYSIWYG web editor; Nvu unofficial bug-fix release"
  8. arch=(i686 x86_64)
  9. license=('GPL')
  10. url="http://www.kompozer.net"
  11. depends=('gtk2' 'glib2' 'pango' 'nss' 'libxt' 'libidl2' 'libgnome')
  12. makedepends=('zip' 'pkgconfig')
  13. options=('!makeflags')
  14. install=(kompozer.install)
  15. source=(http://downloads.sourceforge.net/kompozer/${pkgname}-${pkgver}-src.tar.bz2 kompozer.desktop kompozer-png14.patch mozconfig https://api.opensuse.org/public/source/mozilla:Factory/kompozer/gcc46_default_ctors.patch)
  16. md5sums=('cd4664ecda908666b19ef0607010c627'
  17.          '783ec7cb74d5154b2f9ca54755c363cb'
  18.          'd5b77df4723cf27131055ed8cecbc4ab'
  19.          '62b8e1d36559c18d638c17c01c4ebde2'
  20.          'ad3ec5cbc6677dd712b140148398f58f')
  21.  
  22. build() {
  23.   cd ${startdir}/src/mozilla
  24.  
  25.   patch -Np0 -i "$srcdir"/kompozer-png14.patch || return 1
  26.   patch -Np0 -i "$srcdir"/gcc46_default_ctors.patch || return 1
  27.  
  28.   cp "${srcdir}/mozconfig" .mozconfig
  29.  
  30.   make -f client.mk build || return 1
  31.   cd ${startdir}/src/obj-kompozer
  32.   make DESTDIR=${pkgdir} install || return 1
  33.  
  34.   # put links & shortcut
  35.   install -m755 -dD $startdir/pkg/usr/share/applications
  36.   install -m644  $startdir/src/kompozer.desktop $startdir/pkg/usr/share/applications/
  37.  
  38. }