updated on Mon Jan 23 16:10:15 UTC 2012
[aur-mirror.git] / editix-free / PKGBUILD
blob5aa7baf3a0550b6c94f188f3f9de455a1ef2e581
1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
4 pkgname=editix-free
5 pkgver=020110
6 _pkgver=2010
7 pkgrel=1
8 pkgdesc="EditiX is a powerful and easy to use XML editor, Visual Schema Editor, XQuery Editor and XSLT debugger"
9 arch=('any')
10 license=('custom')
11 depends=('java-runtime')
12 url="http://free.editix.com/"
13 source=("http://free.editix.com/download/$pkgname-$_pkgver.tar.gz")
14 md5sums=('a7dd16c50e2448e121fa618a75658b46')
16 build() {
17         msg "Nothing to compile for $pkgname"
20 package() {
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"
26     rm -f $F
27     # Symlink the original file from /opt to /usr
28     ln -sf /usr/share/licenses/${pkgname}/$F $F
29   done
31   # Install the compiled app to /opt
32   cd "$srcdir"
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"
41   # Fix the run script
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: