aboutsummaryrefslogtreecommitdiffstats
path: root/community/clsync
diff options
context:
space:
mode:
Diffstat (limited to 'community/clsync')
-rw-r--r--community/clsync/APKBUILD32
1 files changed, 20 insertions, 12 deletions
diff --git a/community/clsync/APKBUILD b/community/clsync/APKBUILD
index e06d4e0fc9..4d9d3cbe37 100644
--- a/community/clsync/APKBUILD
+++ b/community/clsync/APKBUILD
@@ -5,7 +5,7 @@ pkgver=0.4.2
pkgrel=1
pkgdesc="File live sync daemon based on inotify"
url="https://github.com/xaionaro/clsync"
-arch="x86 x86_64"
+arch="x86 x86_64 aarch64"
license="GPL-3.0-or-later"
depends=""
depends_dev="glib-dev fts-dev libcap-dev libexecinfo-dev linux-headers musl-dev"
@@ -15,6 +15,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/xaionaro/$pkgname/archive/v$
musl-fix.patch"
builddir="$srcdir/$pkgname-$pkgver"
options="!check" # upstream does not provide tests
+seccomp=""
prepare() {
default_prepare
@@ -26,17 +27,24 @@ prepare() {
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
+ 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
}