1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- set -e
- program=graft
- version=2.16
- arch=noarch
- release=6
- pkgcategory=tools
- tarname=${program}-${version}.tar.gz
- fetch="
- https://dragora.mirror.garr.it/current/sources/$tarname
- rsync://rsync.dragora.org/current/sources/$tarname
- "
- description="
- A package management utility (version $version).
- Graft provides a mechanism for managing multiple packages under a single
- directory hierarchy. Packages are installed in self contained directory
- trees and symbolic links from a common area are made to the package files.
- This approach allows multiple versions of the same package to coexist on
- the same system. One version is the commonly available version and
- symbolic links will be made to this version. New versions can be tested
- and once acceptable can replace the current commonly available version.
- Older versions can still be used for legacy systems by using the 'real'
- path name to the package instead of the 'common' path name.
- "
- homepage=https://peters.gormand.com.au/Home/tools/graft
- license=GPLv2+
- docs="CHANGES COPYING README THOUGHTS doc/graft.html doc/graft.pdf doc/graft.txt"
- docsdir="${docdir}/${program}"
- full_pkgname="${program}@${pkgcategory}"
- build()
- {
- unpack "${tardir}/$tarname"
- cd "$srcdir"
-
- chmod -R u+w,go-w,a+rX-s .
- cp -f Makefile.dist Makefile
- make \
- PACKAGEDIR=/usr/pkg \
- TARGETDIR=/ \
- BIN="${destdir}/usr/bin" \
- MAN="${destdir}/$mandir" \
- DOC="${destdir}/$docsdir" \
- install
-
- lzip -9 "${destdir}/${mandir}/man1/graft.1"
-
- mkdir -p "${destdir}/$docsdir"
- cp -p $docs "${destdir}/$docsdir"
-
- rm -f "${destdir}/$docsdir.nograft"
- }
|