summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 71f493e8e84162135cbe21d224377a89eff226d7 (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
# Maintainer: Jenya Sovetkin <e dot sovetkin at gmail dot com>
pkgname=notmuch-deduplicate-git
pkgver=r1.335a9d0
pkgrel=1
pkgdesc="Deduplicate Maildir using Notmuch"
arch=('any')
url="https://github.com/esovetkin/notmuch-deduplicate"
license=('BSD')
depends=('notmuch' 'pv' 'parallel' 'bash' 'jq')
makedepends=('git')
sha256sums=('SKIP')
provides=('notmuch-deduplicate')
source=('git+https://github.com/esovetkin/notmuch-deduplicate.git')


_gitroot=git://github.com/esovetkin/notmuch-deduplicate
_gitname=notmuch-deduplicate

pkgver() {
  cd "${srcdir}/${_gitname}"

  # Get the version number.
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${srcdir}/${_gitname}"

  # Install the program
  install -Dm755 notmuch-deduplicate "${pkgdir}/usr/bin/notmuch-deduplicate"
}

# vim:set ts=2 sw=2 et: