updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / celtx / PKGBUILD
blob7e502255f9e12abf99b6bcb0d6cdc9d4813abbd3
1 # Maintainer: Dan Serban
2 # Contributor: John Gerritse <reaphsharc@gmail.com>
4 pkgname=celtx
5 pkgver=2.x.x.latest
6 pkgrel=1
7 pkgdesc="Integrated solution for media pre-production and collaboration"
8 url=http://celtx.com/
9 arch=(any)
10 license=(CePL) 
11 depends=(python2)
12 makedepends=(lynx)
13 conflicts=(celtx-bin)
15 build()
17   rm celtx.tar.bz2 2>/dev/null || true
18   _url=$(lynx -dump "http://celtx.com/" | grep -o http.*src.tar.bz2)
19   wget -O celtx.tar.bz2 "${_url}"
20   msg "Extracting archive..."
21   bsdtar -xf celtx.tar.bz2
22   msg2 "... completed."
23   _basedir="${srcdir}"/$(ls -1d celtx-*-src/ | tail -1)
24   cd "${_basedir}"/mozilla
25   install mozconfig-nodebug-linux.in .mozconfig
26   PYTHON=python2 make -f client.mk build
27   make -C ../objdir/celtx/installer
28   mkdir -p "${pkgdir}"/usr/share
29   bsdtar -xf "${_basedir}"/objdir/dist/celtx*.en-US.linux-${CARCH}.tar.bz2 -C "${pkgdir}"/usr/share
30   mkdir -p "${pkgdir}"/usr/share/applications
31   DESKTOPFILE="${pkgdir}"/usr/share/applications/brosix.desktop
32   echo "[Desktop Entry]" > "${DESKTOPFILE}"
33   echo "Name=Celtx" >> "${DESKTOPFILE}"
34   echo "Comment=Solution for media pre-production and collaboration" >> "${DESKTOPFILE}"
35   echo "Exec=/usr/share/celtx/celtx" >> "${DESKTOPFILE}"
36   echo "Icon=/usr/share/celtx/icons/default48.png" >> "${DESKTOPFILE}"
37   echo "Type=Application" >> "${DESKTOPFILE}"
38   echo "Terminal=false" >> "${DESKTOPFILE}"
39   echo "Categories=Office;" >> "${DESKTOPFILE}"