1 # Maintainer: Dan Serban
2 # Contributors: SpepS, Guillem Rieu
7 pkgdesc="TextRoom is a simple full-screen text editor heavily inspired by similar text editors such as Q10 and JDarkRoom"
9 url=http://code.google.com/p/textroom/
11 depends=('curl' 'libxml++' 'hunspell' 'qt' 'sdl_mixer')
12 install='textroom.install'
13 source=("http://textroom.googlecode.com/files/$pkgname-${pkgver}.tar.gz")
14 md5sums=('e20bd19784644968bbffdb90d8ef0659')
20 sed 's+/usr/share/sounds+/usr/share/sounds/textroom+g' -i application/src/textroom.cpp
21 sed 's+-lhunspell+-lhunspell-1.3+' -i Makefile -i application/application.pro
22 sed 's/linux-g++/unix/' -i application/application.pro
27 make INSTALL_ROOT="${pkgdir}" install
28 rm "${pkgdir}"/usr/bin/textroom-uninstall
29 install -Dm644 "${pkgdir}"/usr/share/sounds/keyenter.wav \
30 "${pkgdir}"/usr/share/sounds/$pkgname/keyenter.wav
31 install -Dm644 "${pkgdir}"/usr/share/sounds/keyany.wav \
32 "${pkgdir}"/usr/share/sounds/$pkgname/keyany.wav
33 rm "${pkgdir}"/usr/share/sounds/*.wav
34 rm -rf "${pkgdir}"/usr/share/hunspell