1 # Contributor: giniu <gginiu@gmail.com>
7 pkgdesc="Serna Free Open Source XML Editor"
9 url="http://www.syntext.com/products/serna-free/"
10 source=("http://downloads.syntext.com/serna-free/${pkgver}-RELEASE/serna-free-${pkgver}-${_pkgdate}-linux.tgz"
12 arch=('i686' 'x86_64')
13 [ "$CARCH" = "i686" ] && depends=('gcc-libs' 'libxmu' 'libxft' 'libxinerama')
14 [ "$CARCH" = "x86_64" ] && depends=('gcc-libs-multilib' 'lib32-libxmu' 'lib32-libxft' 'lib32-libxinerama')
15 makedepends=('binutils' 'tar' 'gzip' 'sed')
16 md5sums=('68422e66f4d1b0cf75a8bba6738966d5'
17 '324816ab1d649be335810eab5150a356')
20 cd "${srcdir}"/serna-free-${_filever}
21 mkdir -p "${pkgdir}"/opt
22 mkdir -p "${pkgdir}"/usr/bin
23 tar -xzf serna-free-${_filever}.tgz -C "${pkgdir}"/opt
24 sed -e "s/pkgver/${_filever}/g" ../serna.sh > "${pkgdir}"/opt/serna-free-${_filever}/bin/serna.sh
25 chmod 755 "${pkgdir}"/opt/serna-free-${_filever}/bin/serna.sh
26 chmod 775 "${pkgdir}"/opt/serna-free-${_filever}/bin/serna.bin
27 chmod 755 "${pkgdir}"/opt/serna-free-${_filever}/utils/publishing/*.sh
28 chmod -R a+r "${pkgdir}"/opt/serna-free-${_filever}
29 chmod a+x `find "${pkgdir}"/opt/serna-free-${_filever} -type d`
30 ln -sf /opt/serna-free-${_filever}/bin/serna.sh "${pkgdir}"/usr/bin/serna
31 chown -R root:root "${pkgdir}"