1 # Maintainer: Dan Serban
2 # Contributor: John Gerritse <reaphsharc@gmail.com>
7 pkgdesc="Integrated solution for media pre-production and collaboration"
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
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}"