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

pkgname='mbsync-git'
_pkgname='mbsync'
pkgver=1307.e70c300
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' 'isync')
conflicts=('isync')
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
}