recipes: xfce/exo: upgraded to version 0.12.4
[dragora.git] / recipes / tools / dialog / recipe
blob5bfb2d0fb81bd0f09d19740ca1df8208d27be102
1 # Build recipe for dialog.
3 # Copyright (c) 2017-2018 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=dialog
18 version=1.3-20181107
19 pkgversion="$(echo $version | tr - _)"
20 release=1
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/tools"
25 tarname=${program}-${version}.tgz
27 # Remote source(s)
28 fetch=http://invisible-mirror.net/archives/dialog/$tarname
30 description="
31 Display dialog boxes in scripts.
33 Dialog is a program that will let you present a variety
34 of questions or display messages in nice looking color
35 non-graphical dialog boxes from a shell or perl script.
38 homepage=http://www.gnu.org/software/ncurses
39 license=LGPLv2.1
41 # Source documentation
42 docs="CHANGES COPYING README VERSION"
43 docsdir="${docdir}/${program}-${pkgversion}"
45 # Custom source directory
46 srcdir=${program}-${version}
48 build()
50     set -e
52     unpack "${tardir}/$tarname"
54     cd "$srcdir"
56     # Set sane permissions
57     chmod -R u+w,go-w,a+rX-s .
59     ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS -static" \
60      $configure_args \
61      --libdir=/usr/lib${libSuffix} \
62      --mandir=$mandir \
63      --enable-widec \
64      --with-ncursesw \
65      --build="$(cc -dumpmachine)"
67     make -j${jobs}
68     make -j${jobs} DESTDIR="$destdir" install
70     # Insert the look & feel of Dragora-3.0.  ;-)
72     mkdir -p "${destdir}/etc"
73     cp -p "${worktree}/archive/dialog/dialogrc" "${destdir}/etc/"
74     chmod 644 "${destdir}/etc/dialogrc"
76     # To manage .new (config) files via graft(8)
77     touch "${destdir}/etc/.graft-config"
79     # Compress man page and copy documentation
81     lzip -9 "${destdir}/${mandir}/man1/dialog.1"
83     mkdir -p "${destdir}${docsdir}"
84     cp -p $docs "${destdir}${docsdir}"