desktop/dropbox/PKGBUILD

60 lines
2.1 KiB
Bash
Raw Normal View History

2015-02-27 20:17:16 +08:00
pkgname=dropbox
2016-12-09 02:00:20 +08:00
pkgver=15.4.22
2016-11-15 04:29:38 +08:00
pkgrel=1
2015-05-06 18:16:22 +08:00
pkgdesc="A free service that lets you bring your photos, docs, and videos anywhere and share them easily."
2015-02-27 20:17:16 +08:00
arch=('x86_64')
url="http://www.dropbox.com"
2015-03-11 21:16:30 +08:00
license=('custom')
depends=('dbus-glib' 'libsm' 'libxmu' 'libxslt'
'qt5-base' 'qt5-declarative' 'qt5-webkit')
2015-11-13 09:00:19 +08:00
optdepends=('dolphin-plugins: for integration of dolphin under plasma 5')
2015-02-27 20:17:16 +08:00
options=('!strip' '!upx')
source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${arch}-${pkgver}.tar.gz"
"dropbox.png"
"dropbox.desktop"
2015-07-20 21:01:19 +08:00
"LICENSE"
2015-10-07 06:03:50 +08:00
"dropbox.service"
2015-02-27 20:17:16 +08:00
"dropbox@.service")
2016-12-09 02:00:20 +08:00
sha1sums=('0fedbfe14a3842a914d6b6f2bfe4aa7df7b1bc68'
2016-02-11 07:47:11 +08:00
'64073af76a2bbc7dba4a6886b82af0bb3e71a2a0'
2016-10-29 05:14:45 +08:00
'd5ad720762b9052a4fd6af839038318b37d5fd39'
2016-02-11 07:47:11 +08:00
'b69765536f67fab1080bd623019c8d859edb75dc'
2016-03-25 16:53:30 +08:00
'9bda78faca76d55d0cf1b16af782066bab3029fe'
2016-02-11 07:47:11 +08:00
'0019b370924494390b071ed6e607e5f70c88fc12')
2015-02-27 20:45:02 +08:00
install="${pkgname}.install"
2015-03-11 21:16:30 +08:00
2015-02-27 20:17:16 +08:00
package() {
install -d "$pkgdir/opt"
cp -R "$srcdir"/.dropbox-dist/dropbox-lnx.$arch-$pkgver "$pkgdir"/opt/dropbox
find "$pkgdir/opt/dropbox/" -type f -exec chmod 644 {} \;
chmod 755 "$pkgdir/opt/dropbox/dropboxd"
chmod 755 "$pkgdir/opt/dropbox/dropbox"
install -d "$pkgdir/usr/bin"
ln -s "/opt/dropbox/dropboxd" "$pkgdir/usr/bin/dropboxd"
install -D -m 644 "$srcdir/dropbox.desktop" "$pkgdir/usr/share/applications/dropbox.desktop"
install -D -m 644 "$srcdir/dropbox.png" "$pkgdir/usr/share/pixmaps/dropbox.png"
2015-07-20 21:01:19 +08:00
install -D -m 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2015-10-07 06:03:50 +08:00
install -Dm644 "$srcdir"/dropbox.service "$pkgdir"/usr/lib/systemd/user/dropbox.service
2015-02-27 20:17:16 +08:00
install -Dm644 "$srcdir/dropbox@.service" "$pkgdir/usr/lib/systemd/system/dropbox@.service"
rm -f "$pkgdir"/opt/dropbox/library.zip
ln -s dropbox "$pkgdir"/opt/dropbox/library.zip
2016-10-29 05:14:45 +08:00
2016-03-25 16:53:30 +08:00
cd ${pkgdir}/opt/dropbox/
msg 'removing libQt5'
rm -v libQt5*
rm -vrf plugins/
rm -v qt.conf
msg 'removing other libraries'
rm -v libicu*
rm -v libffi*
rm -v libGL*
rm -v libpopt*
rm -v libX11-xcb*
rm -v libdrm*
2015-02-27 20:45:02 +08:00
}