summaryrefslogtreecommitdiff
path: root/dropbox/PKGBUILD
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-05-26 08:58:17 +0200
committerErich Eckner <git@eckner.net>2016-05-26 09:01:51 +0200
commita5c25cc954d2bd3a854248f41cbffdac1737944a (patch)
tree36f9a07ff919e9732a141ffc4886397cf912d0b9 /dropbox/PKGBUILD
parent0684fb444e2fdb094a6ee79d19c4b7ba60219c72 (diff)
downloadarchlinuxewe-a5c25cc954d2bd3a854248f41cbffdac1737944a.tar.xz
dropbox neu
Diffstat (limited to 'dropbox/PKGBUILD')
-rw-r--r--dropbox/PKGBUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/dropbox/PKGBUILD b/dropbox/PKGBUILD
new file mode 100644
index 000000000..11137fe52
--- /dev/null
+++ b/dropbox/PKGBUILD
@@ -0,0 +1,58 @@
+# Maintainer: Erich Eckner <arch at eckner dot net>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+# Contributor: Tom < tomgparchaur at gmail dot com >
+# Contributor: David Manouchehri <d@32t.ca>
+
+pkgname=dropbox
+pkgver=3.20.1
+pkgrel=1
+pkgdesc="A free service that lets you bring your photos, docs, and videos anywhere and share them easily."
+arch=("i686" "x86_64")
+url="http://www.dropbox.com"
+license=(custom)
+depends=("libsm" "libxslt" "libxmu")
+optdepends=(
+ 'ufw-extras: ufw rules for dropbox'
+ 'perl-file-mimeinfo: opening dropbox folder on some desktop environments'
+)
+conflicts=("dropbox-experimental")
+options=('!strip' '!upx')
+
+source=("dropbox.png" "dropbox.desktop" "terms.txt" "dropbox.service" "dropbox@.service")
+source_i686=("https://d1ilhw0800yew8.cloudfront.net/client/${pkgname}-lnx.x86-${pkgver}.tar.gz")
+source_x86_64=("https://d1ilhw0800yew8.cloudfront.net/client/${pkgname}-lnx.x86_64-${pkgver}.tar.gz")
+
+sha512sums=('b1a2ca11479c9f243c0368d79b36ef87910311af2dd126a3291438083544ed10a640143a58e73be1d27bf016c114e668ea504ed6eed6955370bfcac309e5fb7d'
+ '690c934012a897771ed82115912fc49a81c9b1ba7ac6a6067c733b4693c9c112b1e4c808319068a2adce7b38c2cf23d3befb8ab41259b1c5280cbe8ee468c15c'
+ '73db250803f4af26eca0730749b93cb23e3fd55e3645b3d8dbdb7b1959c4732674a456fe6ff2e65940caf82c6d197c00ae1ac805c4e88a1aadfd8a2a1160f2c7'
+ 'edb11b5a07b6a1512a5345d8ce476562fbfd9ec5642f36315a0969a2583f0e6ce371d39d25063af3734f9527ad53abdc29278c046abc2921222777af6f693a4f'
+ '2d9e37272f401a65a6e1ffe3f6bcf2034cb09cc6c282145272c0e3e27f3f3518f7df488adb6368ee48f04ae89bfb0d4e77a9e4411d93d315c41366592b3abbac')
+sha512sums_i686=('f7e1b04bc1b5c90175b56a33b5c414cb3d5845acccb58d6614c95c9b0a0889dbeb0c87ba653d41924067a0df4098e62d297ed395b166f2b40002b0fdd1878bc4')
+sha512sums_x86_64=('01898af0a59f8fabe2d1f7512d96157411550e81f8cfc2f250ec0eeac1e93ad77efdee053c449c1384d70ba3fa52e97aa3ffaac8cb546e369afa2a516f12820d')
+
+package() {
+ if [ "$CARCH" = "x86_64" ]; then
+ _source_arch="x86_64"
+ else
+ _source_arch="x86"
+ fi
+
+ install -d "$pkgdir"/opt
+ cp -R "$srcdir"/.dropbox-dist/dropbox-lnx.$_source_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 -Dm644 "$srcdir"/dropbox.desktop "$pkgdir"/usr/share/applications/dropbox.desktop
+ install -Dm644 "$srcdir"/dropbox.png "$pkgdir"/usr/share/pixmaps/dropbox.png
+ install -Dm644 "$srcdir"/terms.txt "$pkgdir"/usr/share/licenses/$pkgname/terms.txt
+ 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
+}