summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTom Hacohen2020-08-20 13:35:59 +0300
committerTom Hacohen2020-08-20 13:35:59 +0300
commit7b1df3712f91f683eb2f8702422e1abb7322b16f (patch)
treea5dba5d2b11067403caf9af7d5fe2b769bafa88d /PKGBUILD
downloadaur-7b1df3712f91f683eb2f8702422e1abb7322b16f.tar.gz
Initial commit.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e4919114d29
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}