From 4664c770a8ece0304d860a9392e5099f560fa03a Mon Sep 17 00:00:00 2001 From: Soner Sayakci Date: Thu, 14 Nov 2024 15:53:45 +0100 Subject: [PATCH] feat: add libwatcher-c library --- libwatcher-c.yaml | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 libwatcher-c.yaml diff --git a/libwatcher-c.yaml b/libwatcher-c.yaml new file mode 100644 index 0000000..c3c1413 --- /dev/null +++ b/libwatcher-c.yaml @@ -0,0 +1,48 @@ +package: + name: libwatcher-c + version: 0.13.2 + epoch: 0 + description: "Filesystem watcher. Works anywhere. Simple, efficient and friendly" + copyright: + - license: MIT + +environment: + contents: + packages: + - autoconf + - build-base + - busybox + +pipeline: + - uses: git-checkout + with: + repository: https://github.com/e-dant/watcher + tag: "${{package.version}}" + expected-commit: fcbd52140b62d1d75bcb905c8295bf6e0b0bcb4e + + - name: Build + runs: | + cd watcher-c + c++ -o libwatcher-c.so ./src/watcher-c.cpp -I ./include -I ../include -std=c++17 -fPIC -shared + mkdir -p ${{targets.destdir}}/usr/lib/ + cp libwatcher-c.so ${{targets.destdir}}/usr/lib/libwatcher-c.so + mkdir -p ${{targets.destdir}}/usr/include/ + cp -r include/wtr ${{targets.destdir}}/usr/include/wtr + ldconfig + + - uses: strip + +subpackages: + - name: ${{package.name}}-dev + pipeline: + - uses: split/dev + dependencies: + runtime: + - ${{package.name}} + description: ${{package.name}} dev + +update: + enabled: true + github: + identifier: e-dant/watcher + use-tag: true