summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3723d1f13c2d3ede6a69bbe977bf05cca4e260f9 (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
# Maintainer: Paulo Matos <pmatos@linki.tools>

pkgname='mbsync-git'
_pkgname='mbsync'
pkgver=912.95d18e2
pkgrel=1
pkgdesc="free (GPL) mailbox synchronization program"
arch=('i686' 'x86_64')
url="http://isync.sourceforge.net/"
license=('GPL')
depends=('openssl')
makedepends=('git' 'autoconf' 'automake')
provides=('mbsync')
source=("$_pkgname::git+https://git.code.sf.net/p/isync/isync.git")
sha256sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  printf "%s.%s" $(git rev-list --count HEAD) $(git rev-parse --short HEAD)
}

prepare() {
  cd ${pkgname%-git}
  # Autogen
  ./autogen.sh
}

build() {
  cd ${pkgname%-git}
  ./configure --prefix=/usr
  make
}

package() {
  cd ${pkgname%-git}
  make DESTDIR="$pkgdir/" install
}