diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 9 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgbase = update-hosts-git pkgdesc = Generate a hosts file based on multiple sources (git) - pkgver = r67.114b0d1 + pkgver = r68.99c4bb4 pkgrel = 1 url = https://github.com/pyamsoft/update-hosts.git arch = i686 @@ -5,7 +5,7 @@ pkgname=update-hosts-git _gitname=update-hosts pkgdesc="Generate a hosts file based on multiple sources (git)" -pkgver=r67.114b0d1 +pkgver=r68.99c4bb4 pkgrel=1 arch=('i686' 'x86_64') makedepends=('git') @@ -37,9 +37,16 @@ package() { local _timer="${_gitname}.timer" local _service="${_gitname}.service" cd "$srcdir/$_gitname" + install -Dm 755 "${_gitname}" "${pkgdir}/usr/bin/${_gitname}" install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${_gitname}/LICENSE" install -Dm 644 "${_timer}" "${pkgdir}/usr/lib/systemd/system/${_timer}" install -Dm 644 "${_service}" "${pkgdir}/usr/lib/systemd/system/${_service}" + + # systemd needs absolute paths + sed -i "s#${_gitname}#/usr/bin/${_gitname}#g" \ + "${pkgdir}/usr/lib/systemd/system/${_service}" + + unset _timer _service } |