recipes: Replace 'outdir' with package hash tags
[dragora.git] / recipes / libs / libaio / recipe
blobbd05cc78005cae54498942dfc678a5151536ced5
1 # Build recipe for libaio.
3 # Copyright (c) 2018-2019 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 #    http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 program=libaio
18 version=0.3.112
19 release=1
21 # Define hash tag to categorize the package name output
22 pkghashtag=libs
24 tarname=${program}_${version}.orig.tar.xz
26 # Remote source(s)
27 fetch=http://ftp.debian.org/debian/pool/main/liba/libaio/$tarname
29 description="
30 Kernel Asynchronous I/O (AIO) support for GNU/Linux.
32 AIO enables even a single application thread to overlap I/O operations
33 with other processing, by providing an interface for submitting one or
34 more I/O requests in one system call (io_submit()) without waiting for
35 completion, and a separate interface (io_getevents()) to reap
36 completed I/O operations associated with a given completion group.
39 homepage=http://lse.sourceforge.net/io/aio.html
40 license=LGPLv2+
42 # Source documentation
43 docs="COPYING ChangeLog TODO"
44 docsdir="${docdir}/${program}-${version}"
46 build()
48     set -e
50     unpack "${tardir}/$tarname"
52     cd "$srcdir"
54     # Set sane permissions
55     chmod -R u+w,go-w,a+rX-s .
57     patch -p1 < "${worktree}/patches/libaio/libaio-cflags.patch"
59     make OPT_FLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
60          prefix="${destdir}/usr" \
61          libdir="${destdir}/usr/lib${libSuffix}" \
62          install
64     # Copy documentation
65     mkdir -p "${destdir}${docsdir}"
66     cp -p $docs "${destdir}${docsdir}"/