summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-28 01:24:00 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2024-09-28 01:24:00 +0900
commit45fb3c6e4472673e78fdf65e3e0f72844350168f (patch)
tree13cb2a6952d40b9e4e607541df458aa9e73cd0e8
parent3c3f2f615d3a0777b17e37b5d2c669c2d6de49e0 (diff)
Init
-rwxr-xr-xinstall.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index d1c902c..3d351d0 100755
--- a/install.sh
+++ b/install.sh
@@ -17,16 +17,17 @@ function _install_local() {
else
pkgdir="${HOME}/.local"
fi
- srcdir=$(pwd)
+ bindir="${XDG_SCRIPTS_HOME:-${HOME}/.local/bin}"
+ shrdir="${XDG_DATA_HOME:-${HOME}/.local/share}"
# Download terms
curl -s 'https://www.kakaocorp.com/page/service/service/KakaoTalk' -o 'terms.html'
# Local-install
- 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"
+ 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"
}
# Execute main function