1 # Build recipe for moe.
3 # Copyright (c) 2016-2017 Matias Fonzo, <selk@dragora.org>.
4 # Copyright (c) 2019-2020 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.
20 pkgversion=$(echo $version | tr - _)
23 # Define a category for the output of the package name
26 tarname=${program}-${version}.tar.lz
29 fetch=http://download.savannah.gnu.org/releases/moe/$tarname
31 homepage=http://www.gnu.org/software/moe
37 GNU moe is a powerful, 8-bit clean, console text editor for ISO-8859
38 and ASCII character encodings. It has a modeless, user-friendly
39 interface, online help, multiple windows, unlimited undo/redo
40 capability, unlimited line length, global search/replace (on all
41 buffers at once), block operations, automatic indentation, word
42 wrapping, file name completion, directory browser, duplicate removal
43 from prompt histories, delimiter matching, text conversion from/to
44 UTF-8, romanization, etc.
46 For more information, visit: $homepage
49 # Source documentation
50 docs="AUTHORS COPYING ChangeLog NEWS README"
51 docsdir="${docdir}/${program}-${pkgversion}"
57 unpack "${tardir}/$tarname"
61 # Set sane permissions
62 chmod -R u+w,go-w,a+rX-s .
64 ./configure CXXFLAGS="-Wall -W $QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
68 --build="$(gcc -dumpmachine)"
71 make -j${jobs} DESTDIR="$destdir" install
73 # To manage dot new config file
74 touch "${destdir}/etc/.graft-config"
76 # Compress documentation deleting redundancy
78 lzip -9 "${destdir}/${infodir}/moe.info" \
79 "${destdir}/${mandir}/man1/moe.1"
81 rm -f "${destdir}/${infodir}/dir"
84 mkdir -p "${destdir}${docsdir}"
88 cp -p $file "${destdir}${docsdir}"