12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- set -e
- program=libatomic_ops
- version=7.6.12
- release=1
- pkgcategory=libs
- tarname=${program}-${version}.tar.gz
- fetch=https://github.com/ivmai/libatomic_ops/releases/download/v${version}/$tarname
- description="
- Implementations for atomic memory.
- libatomic_ops provides implementations for atomic memory update
- operations on a number of architectures. This allows direct use of
- these in reasonably portable code. Unlike earlier similar packages,
- this one explicitly considers memory barrier semantics, and allows
- the construction of code that involves minimum overhead across a
- variety of architectures.
- "
- homepage=https://github.com/ivmai/libatomic_ops
- license=GPLv2+
- docs="AUTHORS ChangeLog";
- 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"
- }
|