Permalink
Browse files

Updated dropbox to version 1.6.0 and added systemd service file

  • Loading branch information...
mtorromeo committed Nov 19, 2012
1 parent 7b09562 commit 5d08234df60a0391e635c8e68a3f20416b328dba
Showing with 28 additions and 9 deletions.
  1. +14 −9 dropbox/PKGBUILD
  2. +14 −0 dropbox/dropbox.service
View
@@ -2,7 +2,7 @@
# Contributor: Tom < tomgparchaur at gmail dot com >
pkgname=dropbox
-pkgver=1.4.23
+pkgver=1.6.0
pkgrel=1
pkgdesc="A free service that lets you bring your photos, docs, and videos anywhere and share them easily."
arch=("i686" "x86_64")
@@ -15,17 +15,21 @@ options=('!strip' '!upx')
_source_arch="x86"
[ "$CARCH" = "x86_64" ] && _source_arch="x86_64"
-sha256sums=('3c55d8073fc3ac3a8caa78c8afae8539f207a1dd4882e7186ce0478cbec68a7c'
+sha256sums=('0b52821b72867b07ed8ac44269857d551cb6934a51f98941977e81312c7a680e'
'8b8af2d6a5786d7fa259660a34c47fa0a7534cd112e70d71ee53b1f786baf530'
'dd8fdb362c0bba8d789010594f021671ff00e535fc75e13da855f43bc7a4b3aa'
- 'b9e020c378c318e72857bb6cd859c74e8da1300f34cee5bfec89c4f7a89770a9')
-[ "$CARCH" = "x86_64" ] && sha256sums[0]='0f3571ade90fd5f59bca912b5bbb00224f18da64bbb15f84e992ff44a5dca323'
+ 'b9e020c378c318e72857bb6cd859c74e8da1300f34cee5bfec89c4f7a89770a9'
+ 'b5da4282ff3c87aa66a09eb15fc209002a3266694dfa219494226b223df11ddb')
+[ "$CARCH" = "x86_64" ] && sha256sums[0]='f3491fe07aed1843a32a40341d4bd3a3e26f6b489d112a9c4caec21cce3a2fe0'
-source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${_source_arch}-${pkgver}.tar.gz" "dropbox.png" "dropbox.desktop" "terms.txt")
+source=("https://dl-web.dropbox.com/u/17/${pkgname}-lnx.${_source_arch}-${pkgver}.tar.gz"
+ "dropbox.png"
+ "dropbox.desktop"
+ "terms.txt"
+ "dropbox.service")
build() {
install -d "$pkgdir/opt"
- rm "$srcdir/.dropbox-dist/libstdc++.so.6"
cp -R "$srcdir/.dropbox-dist" "$pkgdir/opt/dropbox"
find "$pkgdir/opt/dropbox/" -type f -exec chmod 644 {} \;
@@ -35,7 +39,8 @@ build() {
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/terms.txt" "$pkgdir/usr/share/licenses/$pkgname/terms.txt"
+ 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/system/dropbox@.service"
}
View
@@ -0,0 +1,14 @@
+[Unit]
+Description=Dropbox
+
+[Service]
+Type=simple
+ExecStart=/usr/bin/dropboxd
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=always
+User=%I
+
+[Install]
+WantedBy=multi-user.target
+

0 comments on commit 5d08234

Please sign in to comment.