updated on Tue Jan 17 20:03:13 UTC 2012
[aur-mirror.git] / serna / PKGBUILD
blobc8971fca61fadcb9a99e205fd7b29d77f50b0f80
1 # Contributor: giniu <gginiu@gmail.com>
2 pkgname=serna
3 pkgver=4.4.0
4 _filever=4.4
5 _pkgdate=20111103
6 pkgrel=2
7 pkgdesc="Serna Free Open Source XML Editor"
8 license=('GPL')
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"
11         serna.sh)
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')
19 build() {
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}"