diff options
author | pyamsoft | 2018-08-30 21:06:43 -0700 |
---|---|---|
committer | pyamsoft | 2018-08-30 21:06:43 -0700 |
commit | 3de81d0dde65e588dd93e692652b13f930e0a027 (patch) | |
tree | 1a869ceffd47b7bca909ede9f8e0932336d579d8 | |
parent | 472c03692bb1fb970d271b045d684a5e5bcb9b4d (diff) | |
download | aur-3de81d0dde65e588dd93e692652b13f930e0a027.tar.gz |
Update pkgbuild
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 3 insertions, 17 deletions
@@ -1,6 +1,6 @@ pkgbase = update-hosts-git pkgdesc = Generate a hosts file based on multiple sources (git) - pkgver = r315.7c5aa4c + pkgver = r330.f5924e9 pkgrel = 1 url = https://github.com/pyamsoft/update-hosts.git arch = any @@ -8,7 +8,7 @@ pkgname=update-hosts-git # shellcheck disable=SC2034 pkgdesc="Generate a hosts file based on multiple sources (git)" # shellcheck disable=SC2034 -pkgver=r315.7c5aa4c +pkgver=r330.f5924e9 # shellcheck disable=SC2034 pkgrel=1 # shellcheck disable=SC2034 @@ -56,25 +56,11 @@ pkgver() { } package() { - _timer="${_gitname}.timer" - _service="${_gitname}.service" - - # shellcheck disable=SC2154 cd "$srcdir/$_gitname" || { msg "Could not cd into $srcdir/$_gitname" return 1 } - # shellcheck disable=SC2154 - 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 + make DESTDIR="${pkgdir}" PREFIX="/usr" install } |