updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / brosix / PKGBUILD
blobb7cbb2cd2f1d19fff05c7daf30766c57ffa88ec5
1 # Maintainer: Dan Serban
3 pkgname=brosix
4 pkgver=3.x.x
5 pkgrel=1
6 pkgdesc="A secure softphone, instant messaging and collaboration tool (Skype work-alike)"
7 arch=(i686)
8 url=http://www.brosix.com/download/linux/
9 license=(unknown:non-free)
10 depends=(libjpeg6 v4l-utils zlib)
11 makedepends=(lynx)
12 _filearch="i386"
14 build()
16   # --- libtiff4 ---
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)
19   wget ${_url}
20   bsdtar -xf $(basename ${_url}) data.tar.gz
21   bsdtar -xf data.tar.gz || true
22   rm data.tar.gz
23   install -Dm755 $(find usr/lib -type f) "${pkgdir}"/usr/lib/libtiff.so.4
24   rm -r usr
26   # --- brosix ---
27   wget -O Brosix_free.tar.gz "http://download.brosix.com/get/?nid=1&fid=Brosix_linux"
28   bsdtar -xf Brosix_free.tar.gz
29   mv Brosix brosix
30   chgrp -R users brosix
31   chmod g+w brosix
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}"