updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / textroom / PKGBUILD
blob76c2a3efa611fe43e05e28421fd73d38ff4ad145
1 # Maintainer: Dan Serban
2 # Contributors: SpepS, Guillem Rieu
4 pkgname=textroom
5 pkgver=0.8.2
6 pkgrel=3
7 pkgdesc="TextRoom is a simple full-screen text editor heavily inspired by similar text editors such as Q10 and JDarkRoom"
8 arch=('i686' 'x86_64')
9 url=http://code.google.com/p/textroom/
10 license=('GPL3')
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')
16 build()
18   cd $pkgname-${pkgver}
19   qmake
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
23   make
25 package() {
26   cd $pkgname-${pkgver}
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