aboutsummaryrefslogtreecommitdiffstats
path: root/community/clsync/APKBUILD
blob: f5f1ae57fe434967e5caf0aa9ccffb76c65c95cc (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
50
51
52
53
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=clsync
pkgver=0.4.2
pkgrel=1
pkgdesc="File live sync daemon based on inotify"
url="https://github.com/xaionaro/clsync"
arch="x86 x86_64"
license="GPLv3+"
depends=""
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/$pkgname/archive/v$pkgver.tar.gz
	musl-fix.patch"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"  # upstream does not provide tests

prepare() {
	default_prepare

	cd "$builddir"
	autoreconf -i
}

build() {
	cd "$builddir"

	./configure \
		CFLAGS="$CFLAGS -lfts -lexecinfo" \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-capabilities \
		--enable-seccomp \
		--disable-debug
	make
}

package() {
	cd "$builddir"

	make DESTDIR="$pkgdir" install

	# https://github.com/xaionaro/clsync/issues/150
	rm "$pkgdir"/usr/bin/gencompilerflags
}

sha512sums="d14a2efc4bf58d9d5c7a3fe5634cacdd182cd7cd814b0e9ebd99024a7282b056d1f7ceeec6903666391c3572d599a18e205af818b098ed7768d5c0e0f4cd1200  clsync-0.4.2.tar.gz
98e81408911731f6e203368094ea0e9eda312648eef8c5beec98b13c6ee43bccee59f0777805bea4d26cbe4e964d2ff95fe863be5be7750b50358d213f106542  musl-fix.patch"