summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e4919114d291e3e7bdc7d1054db5e2819bdeda28 (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.75
pkgrel=1
pkgdesc="EteSync C library"
arch=(x86_64)
url="https://github.com/etesync/etesync-rs"
license=('LGPL')
depends=('openssl')
makedepends=('cargo')
source=("${_pkgname}::git+https://github.com/etesync/etesync-rs.git")
sha512sums=('SKIP')
provides=(etesync)
conflicts=(etesync)

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

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

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

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