123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- set -e
- program=yaml
- pkgname=libyaml
- version=0.2.5
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://pyyaml.org/download/libyaml/$tarname
- description="
- Libyaml is a YAML parser and emitter library.
- The libyaml package contains a C library for parsing and emitting YAML
- (YAML Ain't Markup Language) code.
- "
- homepage=https://pyyaml.org/wiki/LibYAML
- license=Custom
- docs="Changes License ReadMe.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- ./configure CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --docdir=$docsdir \
- --enable-static=no \
- --enable-shared=yes \
- --build="$(gcc -dumpmachine)"
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install-strip
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
- }
|