1 # Contributor irgal <irgal@fird.net>
7 pkgdesc="Multilingual terminal emulator with iiimf support"
10 depends=('fribidi' 'gtk2' 'libsm')
11 makedepends=('intltool' 'librsvg' 'ncurses' 'm17n-lib' 'scim')
15 source=(http://dl.sourceforge.net/sourceforge/${_realname}/${_realname}-${pkgver}.tar.gz \
17 url="http://mlterm.sourceforge.net/"
18 md5sums=('67fc33f09da045f86b0d4ceebed76aac' '91f72887c0c58ba58e806bb8cc753d56')
21 cd ${startdir}/src/${_realname}-${pkgver}
23 ./configure --prefix=/usr \
24 --libexecdir=/usr/lib/mlterm --sysconfdir=/etc --mandir=/usr/share/man \
25 --enable-fribidi --enable-optimize-redrawing --enable-utmp \
26 --enable-scim --enable-m17nlib --disable-static \
27 --with-tools=mlconfig,mlterm-zoom,mlterm-menu,mlclient \
28 --with-imagelib=gdk-pixbuf --with-type-engines=xcore,xft \
29 --enable-anti-alias --enable-iiimf
31 make DESTDIR=${startdir}/pkg install
32 echo 'conf_menu_path_2 = mlterm-zoom' >> ${startdir}/pkg/etc/mlterm/main
33 # install some freedesktop.org compatibility
34 install -D -m644 ${startdir}/src/${_realname}.desktop \
35 ${startdir}/pkg/usr/share/applications/${_realname}.desktop
36 sed -e 's:mlterm:mlclient:' \
37 < ${startdir}/pkg/usr/share/applications/${_realname}.desktop \
38 > ${startdir}/pkg/usr/share/applications/mlclient.desktop
39 install -D -m644 contrib/icon/${_realname}-icon.svg \
40 ${startdir}/pkg/usr/share/pixmaps/${_realname}.svg
41 install -D -m644 contrib/icon/${_realname}-icon-trans.svg \
42 ${startdir}/pkg/usr/share/pixmaps/mlclient.svg
43 # finally we render a png as fallback for not svg aware menu applications
44 # Attention: always make sure you check the dimensions of the source-svg,
45 # you can read the dimensions via inkscapes export funktion
46 cd ${startdir}/pkg/usr/share/pixmaps
47 rsvg -w 48 -h 38 -f png mlterm.svg mlterm.png
48 rsvg -w 48 -h 38 -f png mlclient.svg mlclient.png