-
Notifications
You must be signed in to change notification settings - Fork 2
/
libwatcher-c.yaml
50 lines (44 loc) · 1.16 KB
/
libwatcher-c.yaml
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
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
strip-prefix: release/
tag-filter: release/
use-tag: true