summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1d92cd85b475b1e9488138d63d89b9041f884e41 (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
38
# Maintainer:  twa022 <twa022 at gmail dot com>

_pkgname=thunar-dropbox
pkgname=${_pkgname}-git
pkgver=0.2.1.r2.g61ba51b
pkgrel=2
pkgdesc="Thunar plugin that adds dropbox context-menu (patched for thunarx-3)"
arch=('i686' 'x86_64')
url="https://github.com/Maato/thunar-dropbox"
license=('GPL3')
depends=('thunar>=1.7.0' 'dropbox')
makedepends=('python2' 'git')
source=("${_pkgname}::git+https://github.com/Maato/thunar-dropbox"
        'thunarx-3-port.patch::https://github.com/twa022/thunar-dropbox/commit/2da13dc73c56cea4a1d3de19c4917467954f985d.patch')
sha256sums=('SKIP'
            'ab12fdc792903a3e07fba3cd58c9553075a3bff672fcc45b561ccb7c5bb8e31c')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --tags | sed -r "s/([^-]*-g)/r\1/;s/-/./g"
}

prepare() {
  cd "${srcdir}/${_pkgname}"
  patch -uNp1 -r- -i ../thunarx-3-port.patch
}

build() {
  cd "${srcdir}/${_pkgname}"

  python2 waf configure --prefix=/usr
  python2 waf build
}

package() {
  cd "${srcdir}/${_pkgname}"
  python2 waf install --destdir="${pkgdir}"
}