summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cee8c01cdc8a1fcc277ec85cba432c8b4fc31682 (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
# Maintainer: Tom Hacohen <tom@stosb.com>

pkgname=etesync-git
_pkgname=etesync
pkgver=0.1.0.r75.917fff5
pkgrel=1
pkgdesc="EteSync C library"
arch=(x86_64)
url="https://github.com/etesync/etesync-rs"
license=('LGPL')
depends=('openssl')
makedepends=('cargo' 'git')
source=("${_pkgname}::git+https://github.com/etesync/etesync-rs.git")
sha512sums=('SKIP')
provides=(etesync)
conflicts=(etesync)

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

build() {
  cd "${_pkgname}"
  make
}

package() {
  cd "${_pkgname}"
  make DESTDIR="${pkgdir}" install

  install -t "${pkgdir}/usr/share/doc/${pkgname}" \
    -vDm644 README.md
}