-
Notifications
You must be signed in to change notification settings - Fork 290
/
Copy pathjemalloc.yaml
73 lines (63 loc) · 1.82 KB
/
jemalloc.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
package:
name: jemalloc
version: 5.3.0
epoch: 1
description: general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support
copyright:
- license: BSD-2-Clause
environment:
contents:
packages:
- autoconf
- automake
- build-base
- busybox
- ca-certificates-bundle
- docbook-xml
- libxslt
pipeline:
- uses: fetch
with:
uri: https://github.com/jemalloc/jemalloc/releases/download/${{package.version}}/jemalloc-${{package.version}}.tar.bz2
expected-sha256: 2db82d1e7119df3e71b7640219b6dfe84789bc0537983c3b7ac4f7189aecfeaa
- runs: |
case "${{build.arch}}" in
x86|x86_64) export _pgs=12 ;;
ppc64le) export CPPFLAGS="$CPPFLAGS -maltivec -mabi=altivec" && export _pgs=16 ;;
*) export _pgs=16 ;;
esac
echo "${{package.version}}" > VERSION
export _xslroot=$(find /usr/share/xml/docbook -iname "xsl-stylesheets-*")
./configure \
--enable-xmalloc \
--prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc \
--with-xslroot="$_xslroot" \
--with-lg-page="$_pgs" \
--with-lg-hugepage=21
- uses: autoconf/make
with:
opts: |
all dist
- uses: autoconf/make-install
- uses: strip
subpackages:
- name: jemalloc-dev
pipeline:
- uses: split/dev
dependencies:
runtime:
- jemalloc
- name: jemalloc-doc
description: jemalloc documentation
pipeline:
- uses: split/manpages
- uses: split/infodir
- runs: |
mkdir -p "${{targets.subpkgdir}}"/usr/share
mv "${{targets.destdir}}"/usr/share/doc "${{targets.subpkgdir}}"/usr/share/
update:
enabled: true
github:
identifier: jemalloc/jemalloc