aboutsummaryrefslogtreecommitdiffstats
path: root/community/clsync/APKBUILD
blob: 77746a5d3d8755859acfbc739928df8602f7515c (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
40
41
42
43
44
45
46
47
48
49
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=clsync
pkgver=0.4.3
pkgrel=0
pkgdesc="File live sync daemon based on inotify"
url="https://github.com/xaionaro/clsync"
arch="x86 x86_64 aarch64"
license="GPL-3.0-or-later"
depends_dev="glib-dev fts-dev libcap-dev libexecinfo-dev linux-headers musl-dev"
makedepends="$depends_dev autoconf automake file libtool"
subpackages="$pkgname-doc $pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/xaionaro/clsync/archive/v$pkgver.tar.gz
	musl-fix.patch
	"
options="!check"  # upstream does not provide tests

prepare() {
	default_prepare
	autoreconf -i
}

build() {
	case "$CARCH" in
	aarch64)
		seccomp="disable-seccomp" ;;
	*)
		seccomp="enable-seccomp" ;;
	esac
	./configure \
		CFLAGS="$CFLAGS -lfts -lexecinfo" \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-capabilities \
		--$seccomp \
		--disable-debug
	make
}

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

sha512sums="ab803cc04cd2efd5902ea54ae3f7dc29fd88fc01b70f90112f188b60bb45fe79e255a91df3fa429d0b0f4fb6f67ea453d732a53b4db44d9f85077230d9095e4a  clsync-0.4.3.tar.gz
3302e4d565c6647f27c5e24325a81eaf4789735a944b749a4f5b4372558c65ca4b8acd26eec097d965bc1c811597915c46eed75f697cb930e03a8113e20a1d82  musl-fix.patch"