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

_pkgname=thunar-dropbox
pkgname=${_pkgname}-git
pkgver=0.3.1+0+gcb2070f
pkgrel=1
pkgdesc="Plugin for Thunar that adds context-menu items for Dropbox."
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/Jeinzi/thunar-dropbox"
license=('GPL3')
depends=('thunar' 'dropbox')
makedepends=('git' 'cmake')
source=(git+https://github.com/Jeinzi/thunar-dropbox)
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git describe --long --tags | sed -r "s:-:+:g"
}

build() {
  cd "${_pkgname}"

  cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH="$pkgdir/usr" .
  cmake --build build
}

package() {
  cd "${_pkgname}"
  cmake --build build --target install --config Release
}