Skip to content

Commit

Permalink
feat: add libwatcher-c library
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Nov 14, 2024
1 parent 2829408 commit 4664c77
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions libwatcher-c.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4664c77

Please sign in to comment.