123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- # Build recipe for dhcpcd.
- #
- # Copyright (C) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
- #
- # This recipe is free software: you have unlimited permission
- # to copy, distribute and modify it.
- program=dhcpcd
- version=7.0.0-rc3
- release=1
- tarname=${program}-${version}.tar.xz
- # Remote source(s)
- fetch=https://roy.marples.name/downloads/dhcpcd/$tarname
- description="
- dhcpcd is a DHCP and DHCPv6 client. It's also an IPv4LL (aka ZeroConf) client.
- "
- homepage=https://roy.marples.name/projects/dhcpcd
- license="2-clause BSD"
- # Source documentation
- docs="LICENSE README.md"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
- ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --mandir=$mandir \
- --docdir=$docdir \
- --build="$(cc -dumpmachine)" \
- || true
- make -j${jobs} V=1
- make -j${jobs} DESTDIR="$destdir" install
- # Compress and link man pages (if needed)
- if test -d "${destdir}/$mandir"
- then
- (
- cd "${destdir}/$mandir"
- find . -type f -exec lzip -9 '{}' +
- find . -type l | while read -r file
- do
- ln -sf "$(readlink -- "$file").lz" "${file}.lz"
- rm -- "$file"
- done
- )
- fi
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- for file in $docs
- do
- if test -e $file
- then
- cp -p $file "${destdir}${docsdir}"
- fi
- done
- }
|