mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
63 lines
2.7 KiB
Bash
63 lines
2.7 KiB
Bash
pkgname=dropbox
|
|
pkgver=3.8.5
|
|
pkgrel=1
|
|
pkgdesc="A free service that lets you bring your photos, docs, and videos anywhere and share them easily."
|
|
arch=('x86_64')
|
|
url="http://www.dropbox.com"
|
|
license=('custom')
|
|
depends=('dbus-glib' 'libsm')
|
|
optdepends=('dropbox-servicemenu: servicemenu for KDE4')
|
|
provides=('kfilebox')
|
|
conflicts=('kfilebox')
|
|
replaces=('kfilebox')
|
|
options=('!strip' '!upx')
|
|
source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${arch}-${pkgver}.tar.gz"
|
|
"dropbox.png"
|
|
"dropbox.desktop"
|
|
"LICENSE"
|
|
"dropbox@.service")
|
|
sha512sums=('854c9793607fceef42049839d9b5923fb00f27a28c2df0786350741231d44e5972568f51095c4c31c6c867f3624f350fa3916f8c6f39f7ed3fa478b088e1ea26'
|
|
'b1a2ca11479c9f243c0368d79b36ef87910311af2dd126a3291438083544ed10a640143a58e73be1d27bf016c114e668ea504ed6eed6955370bfcac309e5fb7d'
|
|
'b3e0701afe90693b99d5e23bad6b8637bc27611a42c695d12b3b990d98bf010371b266322cd54c60ffd654ed44f56a85b1fcb51b30db991af60043dc22bf1897'
|
|
'f688115daa8930dffd6e27a7113b137972c20918297c6178bb7e8f820add325d34d452f8bf6bb73fa6b2de73ffa028d27457ed2df390687af8841d9425ebab3e'
|
|
'34a9bc25e0ea5f1e24bea617fcce84a8e5d4b9889b3b0c97a62df1f3ee6f959e67aac46f258882cb8625fea0eac52f4d48904e377017a3c8ebd6a9026dd4c672')
|
|
install="${pkgname}.install"
|
|
|
|
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 {} \;
|
|
find "$pkgdir/opt/dropbox/" -type d -exec chmod 755 {} \;
|
|
chmod 755 "$pkgdir/opt/dropbox/dropboxd"
|
|
chmod 755 "$pkgdir/opt/dropbox/dropbox"
|
|
chown -R root:root "$pkgdir/opt/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"
|
|
install -D -m 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
|
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
|
|
|
|
# FIXME: dirty hack to replace Qt5 libs with system ones
|
|
#for i in libQt5Core.so.5 \
|
|
# libQt5Gui.so.5 \
|
|
# libQt5OpenGL.so.5 \
|
|
# libQt5Qml.so.5 \
|
|
# libQt5Sql.so.5 \
|
|
# libQt5WebKitWidgets.so.5 \
|
|
# libQt5DBus.so.5 \
|
|
# libQt5Network.so.5 \
|
|
# libQt5PrintSupport.so.5 \
|
|
# libQt5Quick.so.5 \
|
|
# libQt5WebKit.so.5 \
|
|
# libQt5Widgets.so.5 ; do
|
|
#ln -sfv /usr/lib/${i} ${pkgdir}/opt/dropbox/
|
|
#done
|
|
}
|