1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
8 pkgdesc="EditiX is a powerful and easy to use XML editor, Visual Schema Editor, XQuery Editor and XSLT debugger"
11 depends=('java-runtime')
12 url="http://free.editix.com/"
13 source=("http://free.editix.com/download/$pkgname-$_pkgver.tar.gz")
14 md5sums=('a7dd16c50e2448e121fa618a75658b46')
17 msg "Nothing to compile for $pkgname"
21 # Licenses first, before we move the whole directory to opt
22 cd "$srcdir/${pkgname}-${_pkgver}"
23 for F in LICENSE.TXT LICENSE.html ; do
24 # Install to /usr and remove from distribution dir
25 install -D -m644 $F "${pkgdir}/usr/share/licenses/${pkgname}/$F"
27 # Symlink the original file from /opt to /usr
28 ln -sf /usr/share/licenses/${pkgname}/$F $F
31 # Install the compiled app to /opt
33 mkdir -p "$pkgdir/opt/"
34 cp -r ${pkgname}-${_pkgver} $pkgdir/opt/
36 # Create a symlink to /usr/bin
37 mkdir -p "$pkgdir/usr/bin/"
38 ln -sf /opt/${pkgname}-${_pkgver}/bin/run.sh "$pkgdir/usr/bin/$pkgname"
39 chmod 755 "${pkgdir}/opt/${pkgname}-${_pkgver}/bin/run.sh"
42 sed -e "s|^TOPDIR=.*\$|TOPDIR='/opt/${pkgname}-${_pkgver}/bin/';|g" \
43 -i "${pkgdir}/opt/${pkgname}-${_pkgver}/bin/run.sh"
46 # vim:set ts=2 sw=2 et: