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 /PKGBUILD | |
parent | 472c03692bb1fb970d271b045d684a5e5bcb9b4d (diff) | |
download | aur-3de81d0dde65e588dd93e692652b13f930e0a027.tar.gz |
Update pkgbuild
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -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 } |