summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 37c14282e10fcb7e62340a5b5cafe77552a6d544 (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
39
40
41
42
43
44
45
46
47
48
# Maintainer: Gaute Hope <eg@gaute.vetsj.com>
pkgname=abunchoftags
pkgver=0651600
pkgrel=1
epoch=
pkgdesc="a keyword <-> tag sync utility for notmuch and offlineimap/GMail"
arch=('x86_64' 'i686')
url="https://github.com/gauteh/abunchoftags"
license=('GPL')
groups=()
depends=('notmuch' 'boost' 'boost-libs' 'gmime' 'glibmm')
makedepends=('scons' 'git' 'pkg-config')
checkdepends=('')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(abunchoftags::git+https://github.com/gauteh/abunchoftags.git)
noextract=()
md5sums=('SKIP')

build() {
  cd "$srcdir/$pkgname"
  scons
}

package() {
  cd "$srcdir/$pkgname"
  mkdir -p "${pkgdir}/usr/bin"
  mkdir -p "${pkgdir}/usr/share/abunchoftags/"

  cp keywsync "${pkgdir}/usr/bin/"
  cp examples/fetch_and_sync.sh "${pkgdir}/usr/share/abunchoftags/"

  if [ -e notmuch_get_revision ]; then
    cp notmuch_get_revision "${pkgdir}/usr/bin/"
  fi
}

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