-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathlibogg.yaml
71 lines (61 loc) · 1.81 KB
/
libogg.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package:
name: libogg
version: 1.3.5
epoch: 1
description: Ogg bitstream and framing library
copyright:
- license: BSD-3-Clause
environment:
contents:
packages:
- build-base
- busybox
- ca-certificates-bundle
- cmake
- samurai
pipeline:
- uses: fetch
with:
uri: https://downloads.xiph.org/releases/ogg/libogg-${{package.version}}.tar.gz
expected-sha512: e4d798621bb04a62dcb831e58a444357635ab3bcb9efbdffa009cb0be1cafb5e72bf71cbcad5305aa5268a92076a03a7e564a19c0c8d54b93a05d9b03ad2da6b
- runs: |
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
CFLAGS="$CFLAGS -O2 -flto=auto" \
cmake -B build-shared -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=None \
$CMAKE_CROSSOPTS
cmake --build build-shared
cmake -B build-static -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
$CMAKE_CROSSOPTS
cmake --build build-static
- runs: |
DESTDIR="${{targets.destdir}}" cmake --install build-static
DESTDIR="${{targets.destdir}}" cmake --install build-shared
- uses: strip
subpackages:
- name: ${{package.name}}-static
description: ${{package.name}} static library
pipeline:
- uses: split/static
- name: ${{package.name}}-doc
description: ${{package.name}} documentation
pipeline:
- uses: split/manpages
- uses: split/infodir
- name: ${{package.name}}-dev
pipeline:
- uses: split/dev
description: ${{package.name}} dev
update:
enabled: true
release-monitor:
identifier: 1694