summaryrefslogtreecommitdiff
path: root/community/ubuntuone-client/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-05-26 13:37:37 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-05-26 13:37:37 +0200
commit978b7973febf9b1fee624681f33c805e4f04f5dd (patch)
tree73ae74deb425418dce2090020d169406e71d5b51 /community/ubuntuone-client/PKGBUILD
parent6646a7a49f1ff4228204490260b3e0f0e12b5d3c (diff)
parenta5721a07196cf00c26ea1bfb651aab756d202ccb (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/lxappearance/PKGBUILD community/menu-cache/PKGBUILD extra/kdemultimedia/PKGBUILD extra/llvm/PKGBUILD extra/qt/PKGBUILD extra/qtwebkit/PKGBUILD extra/sqlite/PKGBUILD extra/wireshark/PKGBUILD multilib/lib32-llvm/PKGBUILD testing/mdadm/PKGBUILD testing/udev/PKGBUILD
Diffstat (limited to 'community/ubuntuone-client/PKGBUILD')
-rw-r--r--community/ubuntuone-client/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/community/ubuntuone-client/PKGBUILD b/community/ubuntuone-client/PKGBUILD
new file mode 100644
index 000000000..a3ed20691
--- /dev/null
+++ b/community/ubuntuone-client/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 71102 2012-05-24 05:37:26Z bgyorgy $
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=ubuntuone-client
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="Ubuntu One helps you store, sync and share files between your computers"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/ubuntuone-client"
+license=('GPL')
+depends=('dbus-glib' 'python2-distribute' 'python2-pyinotify' 'python2-ubuntuone-storageprotocol' 'python2-gobject' 'libnotify' 'python2-configglue' 'ubuntu-sso-client' 'hicolor-icon-theme' 'xdg-utils')
+makedepends=('intltool' 'imake' 'gobject-introspection' 'vala')
+optdepends=('ubuntu-sso-client-qt: required for first-time log in')
+options=('!libtool')
+install=$pkgname.install
+source=(http://launchpad.net/ubuntuone-client/stable-3-0/$pkgver/+download/$pkgname-$pkgver.tar.gz
+ http://pkgbuild.com/~bgyorgy/sources/$pkgname-translations-20120513.tar.gz)
+md5sums=('5eef323d4d1fa57386ebacdc07e8a49b'
+ '6f4603f11ea21d030bfaef34d3567f68')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's@^#!.*python$@#!/usr/bin/python2@' bin/*
+
+ # Install language files
+ echo 'ace af am an ar ast az be bg bn bo br bs ca ca@valencia ckb crh cv cy cs csb da de el en_AU en_CA en_GB eo es et eu fa fi fo fr fy gd gl gu he hi hr hu hy id is it ja jv kk km kn ko ku ky lt lv ml mr ms my nb nds nl nn oc pl pt pt_BR ro ru sd shn si sk sl sq sr sv ta te th tr ug uk ur uz vi zh_CN zh_HK zh_TW' >po/LINGUAS
+ rename $pkgname- '' ../po/$pkgname-*.po
+ mv -f -t po ../po/*
+
+ # Fix desktop file
+ sed -i 's/ubuntuone-installer/ubuntuone-control-panel-qt/' \
+ ubuntuone/platform/linux/{messaging,launcher}.py
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname \
+ --disable-static \
+ PYTHON=python2
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ # We don't have Apport in Arch Linux
+ rm -r "$pkgdir"/{etc/apport,usr/share/apport}
+}