1 # Maintainer: Alessio Sergi <asergi at archlinux dot us>
7 pkgdesc="Secure file backup, sync and sharing client (beta channel)"
9 url="https://spideroak.com/"
11 provides=(${_pkgname})
12 conflicts=(${_pkgname})
14 install=${pkgname}.install
17 [[ "${CARCH}" = 'i686' ]] && _arch='i386'
18 source=("${pkgname}_${pkgver}_${_arch}.deb"::"https://${_pkgname}.com/directdownload?platform=ubuntulucid&arch=${_arch}&beta=yes"
20 md5sums=('d04a68c1ec3bcc7a526aab58825786bb'
21 '9338d3464e8ce876d7222099c22a205b')
22 [[ "${CARCH}" = 'i686' ]] && md5sums[0]='a0bcaadffcbe6c12a72e6d413ff8fbce'
27 # unpack bundled files
30 # install config files
31 install -d -m755 "${pkgdir}/etc/"{dbus-1/system.d,sysctl.d}
32 install -m644 "etc/dbus-1/system.d/${_pkgname}.dbus.conf" \
33 "${pkgdir}/etc/dbus-1/system.d/${_pkgname}.dbus.conf"
34 install -m644 "etc/sysctl.d/30-${_pkgname}.conf" \
35 "${pkgdir}/etc/sysctl.d/30-${_pkgname}.conf"
38 rm -f usr/lib/SpiderOak/lib{gcc_s,stdc++,z}.so.*
39 rm -f usr/lib/SpiderOak/*/*/*.exe
42 install -d -m755 "${pkgdir}/opt/SpiderOak"
43 cp -r usr/lib/SpiderOak/* "${pkgdir}/opt/SpiderOak/"
45 # change /usr to /opt in start script file
46 sed -i 's:/usr/lib:/opt:g' usr/bin/SpiderOak
48 # install start script file
49 install -d -m755 "${pkgdir}/usr/bin"
50 install -m755 usr/bin/SpiderOak "${pkgdir}/usr/bin/SpiderOak"
52 # fix desktop file (according to the desktop entry spec)
55 -e "/^Name=/s:Backup:Beta:" \
56 -e "/^Comment=/s:SpiderOak ::" \
57 -e "/^Categories=/s:SpiderOak;::" \
58 -e "/^Icon=/s:=.*:=${_pkgname}:" \
59 -e "/^Exec=/s:=.*:=SpiderOak:" \
60 "usr/share/applications/${_pkgname}.desktop"
62 # install desktop and pixmap files
63 install -d -m755 "${pkgdir}/usr/share/"{applications,pixmaps}
64 install -m644 "usr/share/applications/${_pkgname}.desktop" \
65 "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
66 install -m644 "usr/share/pixmaps/${_pkgname}.png" \
67 "${pkgdir}/usr/share/pixmaps/${_pkgname}.png"
69 # install custom license file
70 install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"
71 install -m644 terms.txt "${pkgdir}/usr/share/licenses/${pkgname}/terms.txt"
74 # vim:set ts=2 sw=2 et: