updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / xxe-std / PKGBUILD
blobcd50c00478a3b7e7293f4d8acc29776f597a05f7
1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 # Based on xxe package by: Otto Sabart <seberm@gmail.com>
4 pkgname=xxe-std
5 pkgver=3.5.2
6 pkgrel=3
7 pkgdesc="XMLmind XML Editor allows to edit large, complex, modular, XML documents. This package contains latest Standard Edition"
8 arch=('i686' 'x86_64')
9 url="http://www.xmlmind.com/xmleditor"
10 provides=('xxe')
11 conflicts=('xxe')
12 license=('custom')
13 depends=('java-runtime=6')
14 makedepends=('imagemagick' 'unzip')
15 install=xxe.install
16 source=(http://www.xmlmind.com/archive/xmleditor/$pkgver/xxe-std-${pkgver//./_}.zip xxe.sh xxe.desktop)
18 md5sums=('199d5efaf723f3c295e7e81b97909765'
19          'ccd373358e00dfcf8055067bc614ec39'
20          '5665a6b917f6a79e94e09995e7ae63d1')
22 build() {
23         cd "${srcdir}"
24         mkdir "${pkgdir}"/opt
25         mv xxe-std-${pkgver//./_} "${pkgdir}"/opt/xxe
26         rm "${pkgdir}"/opt/xxe/bin/*.bat
27         rm "${pkgdir}"/opt/xxe/bin/*.exe
29         # switch to Java 6
30         #sed 's/java/java6/' -i "${pkgdir}"/opt/xxe/bin/{xxe,rngvalid,csscheck,dtdvalid,xsdvalid,schvalid,deploywebstart,convertdoc,translatexxe}
32         # license
33         install -D -m644 "${pkgdir}"/opt/xxe/bin/legal/xxe-std.LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
35         # logo and menu file
36         mkdir -p "${pkgdir}"/usr/share/{applications,pixmaps}
37         convert "${pkgdir}"/opt/xxe/bin/icon/xxe.tiff "${pkgdir}"/usr/share/pixmaps/xxe.png
38         install    -m644 "${srcdir}"/xxe.desktop "${pkgdir}"/usr/share/applications/
39         install -D -m755 "${srcdir}"/xxe.sh "${pkgdir}"/etc/profile.d/xxe.sh