updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / toggl-desktop / PKGBUILD
blob1e7d4ac9e38b01167d22c6492811a037139f068f
1 # Contributor: Hugo Ideler <hugoideler AT dse DOT nl>
2 # Modifications: Pavel Benak <pavel.benak AT gmail DOT com>
3 # category: office
5 pkgname=toggl-desktop
6 pkgver=2.5.2
7 pkgrel=1
8 pkgdesc="Time tracker application"
9 arch=('i686' 'x86_64')
10 url="http://www.toggl.com/"
11 license=()
12 groups=()
13 depends=('qt>=4.6.0')
14 makedepends=('deb2targz')
15 provides=()
16 conflicts=('toggl')
17 replaces=('toggl')
18 backup=()
19 options=()
20 if [ "$CARCH" == 'x86_64' ]
21 then
22   source=(https://launchpad.net/~official-toggl/+archive/ppa/+files/${pkgname}_${pkgver}-0~ppa1_amd64.deb)
23   md5sums=(242372f61673eb9f270741f20c3f3258)
24 else
25   source=(https://launchpad.net/~official-toggl/+archive/ppa/+files/${pkgname}_${pkgver}-0~ppa1_i386.deb)
26   md5sums=(651872495f27f4503b6552673b0fa4a9)
28 noextract=()
29 #generated with 'makepkg -g'
31 build() {
32   cd "$srcdir/"
34   #extract archive
35   if [ "$CARCH" == 'x86_64' ]
36   then
37    deb2targz ${pkgname}_${pkgver}-0~ppa1_amd64.deb || return 1
38    tar xvzf ${pkgname}_${pkgver}-0~ppa1_amd64.tar.gz || return 1
39   else
40    deb2targz ${pkgname}_${pkgver}-0~ppa1_i386.deb || return 1
41    tar xvzf ${pkgname}_${pkgver}-0~ppa1_i386.tar.gz || return 1
42   fi
44   # Manual install
45   mkdir -p $pkgdir/usr
46   cp -a usr/* $pkgdir/usr
49 # vim:set ts=2 sw=2 et: