1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
6 pkgdesc="Computer Aided Translation (CAT) suite supporting the XLIFF standard"
8 url="http://transolution.python-hosting.com/"
10 depends=('python' 'pygtk' '4suite' 'desktop-file-utils' 'hicolor-icon-theme' 'xdg-utils')
11 install=$pkgname.install
12 source=(http://downloads.sourceforge.net/eviltrans/Transolution-$pkgver.zip \
14 md5sums=('fa21fe1b58503aea16f833ef239283f8'
15 'e3ea7d1689fdf0b3ad8eef2ed727b6b8')
18 cd ${srcdir}/Transolution-$pkgver
20 install -d ${pkgdir}/usr/share/$pkgname \
22 ${pkgdir}/usr/share/$pkgname/filters || return 1
24 cp -r * ${pkgdir}/usr/share/$pkgname || return 1
25 rm ${pkgdir}/usr/share/$pkgname/*{bat,txt,ico,png} || return 1
26 find ${pkgdir}/usr/share/$pkgname/$pkgname -type f -exec chmod 644 "{}" \; || return 1
27 install -D -m644 readme.txt ${pkgdir}/usr/share/$pkgname/README || return 1
31 do ln -s /usr/share/$pkgname/$i ${pkgdir}/usr/bin/$i || return 1
34 #icons and .desktop file
35 install -D -m644 icon_16x16.png \
36 ${pkgdir}/usr/share/icons/hicolor/16x16/apps/$pkgname.png || return 1
37 install -D -m644 icon_32x32.png \
38 ${pkgdir}/usr/share/icons/hicolor/32x32/apps/$pkgname.png || return 1
39 install -D -m644 ${srcdir}/$pkgname.desktop \
40 ${pkgdir}/usr/share/applications/$pkgname.desktop || return 1
42 #links to filter files for easy use
43 cd ${pkgdir}/usr/share/$pkgname/$pkgname/filters/filter_settings
45 do ln -s /usr/share/$pkgname/$pkgname/filters/filter_settings/$i \
46 ${pkgdir}/usr/share/$pkgname/filters/$i || return 1