diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-12-12 14:04:26 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-12-12 14:04:26 +0900 |
| commit | 934160ebc2c9eae59f6380066fadc666e761248c (patch) | |
| tree | 354649cae8cab2c6437c634e7848b93a1c53cd0a /install.sh | |
| parent | 9438ba31b13b2bbba23916276b4dfe3fdf88e565 (diff) | |
modified .SRCINFO, modified PKGBUILD, modified install.sh, modified kakaotalk
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 "$@" |
