# shellcheck shell=bash # shellcheck disable=SC2034 # Various variables that are used by makepkg # shellcheck disable=SC2154 # Various variables that are provided by makepkg # Maintainer: eomanis at web dot de pkgname='yabddnsd' _pkgverUpstream="0.11.0" pkgver="${_pkgverUpstream//-/.}" pkgrel=1 pkgdesc="Yet another bash dynamic DNS daemon" arch=('any') url='https://eomanis.duckdns.org/permshare/yabddnsd/' license=('GPL3') depends=('bash>=4.4' 'bc' 'bind-tools' 'coreutils' 'findutils' 'grep' 'iproute2' 'sed' 'wget') optdepends=('miniupnpc: Detection of public IPv4 address using UPnP') replaces=('freedns-maintain-ip') source=("https://eomanis.duckdns.org/permshare/yabddnsd/yabddnsd-${_pkgverUpstream}.tar.gz") sha384sums=('b01ffa34f0198d1ce8084d7648b41f498005e3cd18579cd003b90477c027e2b547c64496a751efaeeb5d3abc13397663') package() { local srcRootDir="${srcdir}/${pkgname}-${_pkgverUpstream}" # Create the required directories install --mode=u=rwx,go=rx --directory \ "${pkgdir}/usr/bin" \ "${pkgdir}/usr/lib/systemd/system" \ "${pkgdir}/usr/share/man/man8" # Place the files install --mode=u=rwx,go=rx --target-directory="${pkgdir}/usr/bin" "${srcRootDir}/yabddnsd" install --mode=u=rw,go=r --target-directory="${pkgdir}/usr/lib/systemd/system" "${srcRootDir}/systemd/yabddnsd@.service" # Gzip and place the manual pages gzip --fast --to-stdout - < "${srcRootDir}/yabddnsd.8" > "${pkgdir}/usr/share/man/man8/yabddnsd.8.gz" gzip --fast --to-stdout - < "${srcRootDir}/systemd/yabddnsd.service.8" > "${pkgdir}/usr/share/man/man8/yabddnsd.service.8.gz" chmod -R u=rwX,go=rX "${pkgdir}/usr/share/man/man8" }