diff options
Diffstat (limited to 'install.sh')
| -rwxr-xr-x | install.sh | 15 |
1 files changed, 7 insertions, 8 deletions
@@ -1,5 +1,5 @@ #!/bin/bash -# Copyright (c) 2023 Ho Kim (ho.kim@ulagbulag.io). All rights reserved. +# Copyright (c) 2023-2024 Ho Kim (ho.kim@ulagbulag.io). All rights reserved. # Use of this source code is governed by The Unlicense license that can be # found in the LICENSE file. @@ -17,18 +17,17 @@ function _install_local() { else pkgdir="${HOME}/.local" fi - bindir="${XDG_SCRIPTS_HOME:-${HOME}/.local/bin}" - shrdir="${XDG_DATA_HOME:-${HOME}/.local/share}" + srcdir=$(pwd) # Download terms curl -s 'https://www.kakaocorp.com/page/service/service/KakaoTalk' -o 'terms.html' # Local-install - install -Dm755 -t "${pkgdir}/bin" "${bindir}/kakaotalk" - install -Dm644 -t "${pkgdir}/share/applications" "${shrdir}/applications/kakaotalk.desktop" - install -Dm644 -t "${pkgdir}/share/icons/hicolor/256x256/apps" "${shrdir}/kakaotalk/kakaotalk.png" - install -Dm644 -t "${pkgdir}/share/licenses/kakaotalk" "${shrdir}/kakaotalk/terms.html" + install -Dm755 -t "${pkgdir}/bin" "${srcdir}/kakaotalk" + install -Dm644 -t "${pkgdir}/share/applications" "${srcdir}/kakaotalk.desktop" + install -Dm644 -t "${pkgdir}/share/icons/hicolor/256x256/apps" "${srcdir}/kakaotalk.png" + install -Dm644 -t "${pkgdir}/share/licenses/kakaotalk" "${srcdir}/terms.html" } # Execute main function -_install_local "$@" || exit 1 +_install_local "$@" |
