updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / littre / PKGBUILD
blob8760be896de9b9cc5ae9292c938b7193ac03caa1
1 # Contributor: Rémy EVEN <evenremy@gmail.com>
2 pkgname=littre
3 pkgver=2.0
4 pkgrel=1
5 pkgdesc="The great french dictionary of Émile Littré (Qt)"
6 arch=('any')
7 url="http://code.google.com/p/dictionnaire-le-littre/"
8 license=('custom:"CeCILL"')
9 depends=('qt')
10 source=(http://dictionnaire-le-littre.googlecode.com/files/Littre-source-${pkgver}.tar.bz2 \
11         main.cpp.${pkgver}.diff \
12         littre.desktop)
13 md5sums=('c71666ae4cf6353d2bbb7e98dcca9159'
14          'd2c1baf1e14deef8b22898074c8c12f4'
15          '8d5d8a0d397eb446b47b413da331f7b7')
17 build() {
18   cd "$srcdir/Littre-source-2.0"
19   patch -f src/main.cpp ../main.cpp.${pkgver}.diff || return 1
20   qmake || return 1
21   make || return 1
22   install -D -m 644 Licence-CeCILL.txt ${startdir}/pkg/usr/share/licenses/${pkgname}/LICENCE
23   install -D -m 644 ../${pkgname}.desktop ${startdir}/pkg/usr/share/applications/${pkgname}.desktop
24   install -D -m 644 "ui/Girls I do adore....png" ${pkgdir}/usr/share/pixmaps/${pkgname}.png
25   install -D -m 755 bin/Littre ${pkgdir}/usr/bin/littre || return 1
26   install -D -d bin ${pkgdir}/usr/share/${pkgname} || return 1
27   install -D -m 644 bin/*.* ${pkgdir}/usr/share/${pkgname} || return 1