forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlmdb.yaml
73 lines (60 loc) · 1.7 KB
/
lmdb.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
72
73
# Generated from https://git.alpinelinux.org/aports/plain/main/lmdb/APKBUILD
package:
name: lmdb
version: 0.9.30
epoch: 0
description: Lightning Memory-Mapped Database
copyright:
- license: OLDAP-2.8
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
pipeline:
- uses: fetch
with:
expected-sha256: 8c5a93ac3cc97427c54571ad5a6140b7469389d01e6d2f43df39f96d3a4ccef7
uri: https://git.openldap.org/openldap/openldap/-/archive/LMDB_${{package.version}}/openldap-LMDB_${{package.version}}.tar.gz
strip-components: 0
- runs: |
cd openldap-LMDB_${{package.version}}/libraries/liblmdb
cat > lmdb.pc << EOF
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: liblmdb
Description: Lightning Memory-mapped key-value database
URL: http://symas.com/mdb/
Version: @@VERSION@@
Libs: -L${libdir} -llmdb
Cflags: -I${includedir}
EOF
sed -i "s|@@VERSION@@|${{package.version}}|" -i *.pc
make DESTDIR="${{targets.destdir}}" prefix=/usr install
install -Dm0644 *.pc -t ${{targets.destdir}}/usr/lib/pkgconfig
- uses: strip
subpackages:
- name: lmdb-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- lmdb
description: lmdb dev
- name: lmdb-doc
pipeline:
- uses: split/manpages
description: lmdb manpages
- name: lmdb-tools
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}/usr
mv ${{targets.destdir}}/usr/bin ${{targets.subpkgdir}}/usr
description: lmdb tools
update:
enabled: false