summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a722fbb192a823b2ae260e3fd049ead6a554222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
# Contributer: Giuseppe CalĂ  <jiveaxe@gmail.com>
# Contributer: giacomogiorgianni@gmail.com
# Contributor: TingPing <tingping@tingping.se>

pkgname=grive
pkgver=0.4.0
_commit="308aab92cfdbee11dbd608a30b2fa77ddade1b31"
pkgrel=2
pkgdesc="An open source Linux client for Google Drive with support for the new Drive REST API and partial sync"
arch=('i686' 'x86_64')
url='https://github.com/vitalif/grive2'
license=('GPL2')
depends=('yajl' 'curl' 'libgcrypt' 'boost-libs' 'gcc-libs' 'json-c' 'expat')
optdepends=("cppunit: unit tests"
			"binutils: backtrace and libiberty")
makedepends=('cmake' 'boost')
conflicts=('grive-git')
source=("https://github.com/vitalif/grive2/archive/${_commit}.tar.gz")
md5sums=('729768eec210849df5b7254d8a6a4a38')

build() {
	cd "${srcdir}/${pkgname}2-${_commit}"
    rm -rf build
    mkdir build
    cd build

    cmake .. -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_EXE_LINKER_FLAGS=-ljson-c

    make
}

package() {
	make -C "${srcdir}/${pkgname}2-${_commit}/build" DESTDIR="${pkgdir}" install
}