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.
22 # Set 'outdir' for a nice and well-organized output directory
23 outdir="${outdir}/${arch}/tools"
25 tarname=${program}-${version}.tar.lz
29 http://rsync.dragora.org/current/sources/$tarname
30 http://gungre.ch/dragora/mirror/current/sources/$tarname
34 A practical and user-friendly package manager.
36 Qi provides operating modes for build, install, remove, upgrade,
37 and inspect software packages.
39 Qi produces software packages using recipe names (also known as
40 "ports"); in this case, simple text files that contain shell
43 Qi has been written to make use of Graft, a symlink utility to
44 keep your packages under a single directory hierarchy, it was inspired
45 by both Depot (Carnegie Mellon University) and Stow (Bob Glickstein).
48 homepage=http://www.dragora.org
51 # Source documentation
52 docs="AUTHORS COPYING CREDITS NEWS README doc/example.order"
53 docsdir="${docdir}/${program}"
55 # Limit package name to the program name
62 unpack "${tardir}/$tarname"
66 # Set sane permissions
67 chmod -R u+w,go-w,a+rX-s .
69 ./configure $configure_args --packagedir=/usr/pkg --targetdir=/
71 make -j${jobs} DESTDIR="$destdir" install
73 # Copy the config file used in the temporary system
74 if test -r /tools/etc/qirc
76 cp -p /tools/etc/qirc "${destdir}/etc/"
77 chmod 644 "${destdir}/etc/qirc"
80 # Manage dot new file(s)
81 touch "${destdir}/etc/.graft-config"
83 # Compress and copy source documents
85 lzip -9 "${destdir}/${infodir}/qi.info" \
86 "${destdir}/${mandir}/man1/qi.1"
88 mkdir -p "${destdir}${docsdir}"
89 cp -p $docs "${destdir}${docsdir}"/