blob: ff8d75b0d4463535bfca69329378011901a8b8f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Mantainer: David Fabijan <mclenin.at.gmail.com>
pkgname=latexdraw
pkgver=3.3.3
pkgrel=1
pkgdesc='Create svg graphics and/or pstricks code usable in latex documents.'
arch=('any')
url="http://latexdraw.sourceforge.net"
license=('GPL2')
depends=('java-runtime>=7' 'desktop-file-utils')
optdepends=('texlive-pstricks: use generated code in LaTeX documents'
'texlive-latexextra: support for LaTeX text in preview')
source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/LaTeXDraw-${pkgver}-bin.zip
latexdraw.sh)
install=latexdraw.install
md5sums=('aeae9b39aedd6295213059b6bc6609a6'
'8f7e3de38675797b824c5a8878e4c694')
package() {
cd ${srcdir}/LaTeXDraw-${pkgver}/data
install -Dm755 LaTeXDraw.jar ${pkgdir}/usr/share/java/${pkgname}/LaTeXDraw.jar
install -d ${pkgdir}/usr/share/java/${pkgname}/lib/
install -Dm755 lib/*.jar ${pkgdir}/usr/share/java/${pkgname}/lib/
sed -i 's:Icon=/usr/share/latexdraw/images/app/latexdraw.png:Icon=latexdraw:' gnome/latexdraw.desktop
install -Dm644 gnome/${pkgname}.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
install -Dm644 gnome/${pkgname}.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
install -d ${pkgdir}/usr/share/latexdraw/templates/
install -Dm644 templates/*.svg ${pkgdir}/usr/share/latexdraw/templates/
install -Dm755 ${srcdir}/${pkgname}.sh ${pkgdir}/usr/bin/${pkgname}
cd ${srcdir}/LaTeXDraw-${pkgver}/
# NB readme stipulates release_note.txt license.txt must be installed
# in same folder as executable jarfile
install -Dm644 license.txt ${pkgdir}/usr/share/java/${pkgname}/license.txt
install -Dm644 release_note.txt ${pkgdir}/usr/share/java/${pkgname}/release_note.txt
}
|