mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
46 lines
1.8 KiB
Bash
46 lines
1.8 KiB
Bash
pkgname=dropbox
|
|
pkgver=45.4.92
|
|
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=("libsm" "libxslt" "libxmu" "libxdamage" "libxrender" "libxxf86vm" "libxcomposite" "fontconfig" "dbus")
|
|
optdepends=('dolphin-plugins: for integration of dolphin under plasma 5')
|
|
options=('!strip' '!upx')
|
|
source=("https://clientupdates.dropboxstatic.com/dbx-releng/client/dropbox-lnx.x86_64-$pkgver.tar.gz"
|
|
"dropbox.png"
|
|
"dropbox.desktop"
|
|
"LICENSE"
|
|
"dropbox.service"
|
|
"dropbox@.service")
|
|
sha1sums=('891225cfea3cce75f7959a89fbd104c15e6da9a9'
|
|
'64073af76a2bbc7dba4a6886b82af0bb3e71a2a0'
|
|
'b30c97c01be656f9d392262c3cdeb2c0560e0475'
|
|
'b69765536f67fab1080bd623019c8d859edb75dc'
|
|
'ca22e7fcd94c45854e0b6516efa37ed30df56abf'
|
|
'2950fb561a83d0687f86bb1a02116815f9142f9e')
|
|
|
|
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 {} \;
|
|
chmod 755 "$pkgdir/opt/dropbox/dropboxd"
|
|
chmod 755 "$pkgdir/opt/dropbox/dropbox"
|
|
|
|
install -d "$pkgdir/usr/bin"
|
|
ln -s ../../opt/dropbox/dropbox "$pkgdir"/usr/bin/dropbox
|
|
|
|
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/user/dropbox.service"
|
|
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
|
|
}
|