From 934160ebc2c9eae59f6380066fadc666e761248c Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:04:26 +0900 Subject: modified .SRCINFO, modified PKGBUILD, modified install.sh, modified kakaotalk --- install.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 3d351d0..72dba2e 100755 --- a/install.sh +++ b/install.sh @@ -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 "$@" -- cgit v1.2.3