1 # Maintainer: Dan Serban
6 pkgdesc="A secure softphone, instant messaging and collaboration tool (Skype work-alike)"
8 url=http://www.brosix.com/download/linux/
9 license=(unknown:non-free)
10 depends=(libjpeg6 v4l-utils zlib)
17 rm libtiff4_*.deb 2>/dev/null || true
18 _url=$(lynx -dump http://archive.ubuntu.com/ubuntu/pool/main/t/tiff/ | grep -o http.*/libtiff4_.*${_filearch}\.deb | tail -1)
20 bsdtar -xf $(basename ${_url}) data.tar.gz
21 bsdtar -xf data.tar.gz || true
23 install -Dm755 $(find usr/lib -type f) "${pkgdir}"/usr/lib/libtiff.so.4
27 wget -O Brosix_free.tar.gz "http://download.brosix.com/get/?nid=1&fid=Brosix_linux"
28 bsdtar -xf Brosix_free.tar.gz
32 mkdir -p "${pkgdir}"/usr/share
33 mv brosix "${pkgdir}"/usr/share/
34 mkdir -p "${pkgdir}"/usr/bin
35 USRBINFILE="${pkgdir}"/usr/bin/brosix
36 echo '#!/bin/bash' > "${USRBINFILE}"
37 echo '/usr/share/brosix/Brosix' >> "${USRBINFILE}"
38 chmod +x "${USRBINFILE}"
39 mkdir -p "${pkgdir}"/usr/share/applications
40 DESKTOPFILE="${pkgdir}"/usr/share/applications/brosix.desktop
41 echo "[Desktop Entry]" > "${DESKTOPFILE}"
42 echo "Name=Brosix" >> "${DESKTOPFILE}"
43 echo "Comment=Brosix" >> "${DESKTOPFILE}"
44 echo "Exec=brosix" >> "${DESKTOPFILE}"
45 echo "Terminal=false" >> "${DESKTOPFILE}"
46 echo "Type=Application" >> "${DESKTOPFILE}"
47 echo "Categories=Network;Application;" >> "${DESKTOPFILE}"