diff options
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c62a635ffe75 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,25 @@ +pkgbase = grive + pkgdesc = An open source Linux client for Google Drive with support for the new Drive REST API and partial sync + pkgver = 0.4.0 + pkgrel = 2 + url = https://github.com/vitalif/grive2 + arch = i686 + arch = x86_64 + license = GPL2 + makedepends = cmake + makedepends = boost + depends = yajl + depends = curl + depends = libgcrypt + depends = boost-libs + depends = gcc-libs + depends = json-c + depends = expat + optdepends = cppunit: unit tests + optdepends = binutils: backtrace and libiberty + conflicts = grive-git + source = https://github.com/vitalif/grive2/archive/308aab92cfdbee11dbd608a30b2fa77ddade1b31.tar.gz + md5sums = 729768eec210849df5b7254d8a6a4a38 + +pkgname = grive + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4a722fbb192a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |