Start mass upgrade
[dragora.git] / recipes / libs / libsigsegv / recipe
blobe3bba39e2b98b87a372352c0ca1055f8c7eed9b7
1 # Build recipe for libsigsegv.
3 # Copyright (c) 2017 MMPG, <mmpg@vp.pl>.
4 # Copyright (c) 2017-2018, 2021-2022 Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 #    http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # Exit immediately on any error
19 set -e
21 program=libsigsegv
22 version=2.14
23 release=1
25 # Define a category for the output of the package name
26 pkgcategory=libs
28 tarname=${program}-${version}.tar.gz
30 # Remote source(s)
31 fetch=https://ftp.gnu.org/gnu/libsigsegv/$tarname
33 description="
34 A library for handling page faults.
36 GNU libsigsegv is a library for handling page faults in user mode.
37 A page fault occurs when a program tries to access to a region of
38 memory that is currently not available.
41 hompage=https://www.gnu.org/software/libsigsegv/
42 license=GPLv2+
44 # Source documentation
45 docs="AUTHORS ChangeLog COPYING NEWS README"
46 docsdir="${docdir}/${program}-${version}"
48 build()
50     unpack "${tardir}/$tarname"
51         
52     cd "$srcdir"
54     # Set sane permissions
55     chmod -R u+w,go-w,a+rX-s .
56         
57     ./configure \
58     CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
59      $configure_args \
60      --libdir=/usr/lib${libSuffix} \
61      --enable-static=yes \
62      --enable-shared=yes \
63      --build="$(gcc -dumpmachine)"
65     make -j${jobs}
66     make -k check
67     make -j${jobs} DESTDIR="$destdir" install
68         
69     # Copy documentation
70     mkdir -p "${destdir}${docsdir}"
71     cp -p $docs "${destdir}${docsdir}"