updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / mlterm-iiimf / PKGBUILD
blob50cd840b6ce8938ce05332b54ea779e4b6a35ad5
1 # Contributor irgal <irgal@fird.net>
3 pkgname=mlterm-iiimf
4 _realname=mlterm
5 pkgver=2.9.4
6 pkgrel=1
7 pkgdesc="Multilingual terminal emulator with iiimf support"
8 arch=(i686 x86_64)
9 license=('GPL2')
10 depends=('fribidi' 'gtk2' 'libsm')
11 makedepends=('intltool' 'librsvg' 'ncurses' 'm17n-lib' 'scim')
12 provides=('mlterm')
13 conflicts=('mlterm')
14 options=(!libtool)
15 source=(http://dl.sourceforge.net/sourceforge/${_realname}/${_realname}-${pkgver}.tar.gz \
16         ${_realname}.desktop)
17 url="http://mlterm.sourceforge.net/"
18 md5sums=('67fc33f09da045f86b0d4ceebed76aac' '91f72887c0c58ba58e806bb8cc753d56')
20 build() {
21   cd ${startdir}/src/${_realname}-${pkgver}
22  # build
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
30   make || return 1
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