Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jan 15th, 2011  |  syntax: None  |  size: 2.07 KB  |  views: 110  |  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. # Maintainer: Netanel Shine <Netanelshine@gmail.com>
  2. # Contributor: tobias <tobias@archlinux.org>
  3. # Contributor: Gatekeeper <cool_work@yahoo.com>
  4.  
  5. pkgname=mlterm
  6. pkgver=3.0.2
  7. pkgrel=1
  8. pkgdesc="Multi Lingual TERMinal emulator on X"
  9. url="http://mlterm.sourceforge.net/"
  10. arch=('i686' 'x86_64')
  11. license=('BSD')
  12. depends=('fribidi' 'gtk2' 'libsm')
  13. makedepends=('intltool' 'librsvg' 'ncurses' 'scim')
  14. options=('!libtool')
  15. source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
  16.         ${pkgname}.desktop)
  17. md5sums=('91833f0cc4204fa77d9d70baa3049aef'
  18.          'cea39a3e312d0a40a1e839d79bec03ed')
  19.  
  20. build() {
  21.   cd ${srcdir}/${pkgname}-${pkgver}
  22.   # fix build problem
  23.   patch -p1 < ${startdir}/fix-obj-ext.diff || return 1
  24.   # build
  25.   ./configure --prefix=/usr \
  26.     --libexecdir=/usr/lib/mlterm --sysconfdir=/etc --mandir=/usr/share/man \
  27.     --enable-fribidi --enable-optimize-redrawing --enable-utmp \
  28.     --enable-scim --enable-m17nlib --disable-static \
  29.     --with-tools=mlconfig,mlterm-zoom,mlterm-menu,mlclient \
  30.     --with-imagelib=gdk-pixbuf --with-type-engines=xcore,xft
  31.   make || return 1
  32.   make DESTDIR=${pkgdir} install
  33.   echo 'conf_menu_path_2 = mlterm-zoom' >> ${pkgdir}/etc/mlterm/main
  34.  
  35.   # install some freedesktop.org compatibility
  36.   install -D -m644 ${srcdir}/${pkgname}.desktop \
  37.     ${pkgdir}/usr/share/applications/${pkgname}.desktop
  38.   sed -e 's:mlterm:mlclient:' \
  39.    < ${pkgdir}/usr/share/applications/${pkgname}.desktop \
  40.    > ${pkgdir}/usr/share/applications/mlclient.desktop
  41.   install -D -m644 contrib/icon/${pkgname}-icon.svg \
  42.     ${pkgdir}/usr/share/pixmaps/${pkgname}.svg
  43.   install -D -m644 contrib/icon/${pkgname}-icon-trans.svg \
  44.     ${pkgdir}/usr/share/pixmaps/mlclient.svg
  45.  
  46.   # finally we render a png as fallback for not svg aware menu applications
  47.   # Attention: always make sure you check the dimensions of the source-svg,
  48.   # you can read the dimensions via inkscapes export funktion
  49.   cd ${pkgdir}/usr/share/pixmaps
  50.   rsvg -w 48 -h 38 -f png mlterm.svg mlterm.png
  51.   rsvg -w 48 -h 38 -f png mlclient.svg mlclient.png
  52. }
clone this paste RAW Paste Data