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 | |
| parent | 9438ba31b13b2bbba23916276b4dfe3fdf88e565 (diff) | |
modified .SRCINFO, modified PKGBUILD, modified install.sh, modified kakaotalk
| -rw-r--r-- | .SRCINFO | 10 | ||||
| -rw-r--r-- | PKGBUILD | 2 | ||||
| -rwxr-xr-x | install.sh | 15 | ||||
| -rwxr-xr-x | kakaotalk | 26 |
4 files changed, 30 insertions, 23 deletions
@@ -1,7 +1,7 @@ pkgbase = kakaotalk pkgdesc = A mobile messaging app for smartphones operated by Kakao Corporation in South Korea pkgver = 0.1.0 - pkgrel = 3 + pkgrel = 4 url = https://www.kakaocorp.com/page/service/service/KakaoTalk arch = i686 arch = x86_64 @@ -19,9 +19,9 @@ pkgbase = kakaotalk source = kakaotalk.desktop source = kakaotalk.png sha256sums = SKIP - sha256sums = 6b0382b16279f26ff69014300541967a356a666eb0b91b422f6862f6b7dad17e - sha256sums = 2cec5a7c686f903f7312d608a01f4454135f9b936a4d9bb49d781128682dad5b - sha256sums = 5a62e97dc447a0740d92327264c538857f371f29aa8c1adbadafe6a38f835005 - sha256sums = bc6102b626e970adb084f8eb84cebef02ee189ea4e84857b6535b9c524c2872c + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP + sha256sums = SKIP pkgname = kakaotalk @@ -2,7 +2,7 @@ pkgname='kakaotalk' pkgver=0.1.0 -pkgrel=3 +pkgrel=4 pkgdesc='A mobile messaging app for smartphones operated by Kakao Corporation in South Korea' arch=( 'i686' @@ -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 "$@" @@ -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. @@ -45,20 +45,28 @@ function _install_wine() { # Restore home directory export HOME="${HOME_ORIGIN}" + # Link the wine home directory to the wild + HOME_WINE="$( + find "${WINEPREFIX}/drive_c/users" \ + -mindepth 1 -maxdepth 1 -type d -not -name 'Public' + )" + mv "${HOME_WINE}" "${HOME_WINE}-bak" || true + ln -sf "${HOME}" "${HOME_WINE}" + # Create a desktop shortcut if [ -d "${XDG_DATA_HOME:-${HOME}/.local/share}/applications" ]; then ICON_SRC='/usr/share/applications/kakaotalk.desktop' ICON_DST="${XDG_DATA_HOME:-${HOME}/.local/share}/applications/kakaotalk.desktop" - if [ ! -f "${ICON_DST}" ]; then + if [ -f "${ICON_SRC}" ] && [ ! -f "${ICON_DST}" ]; then mkdir -p "$(dirname "${ICON_DST}")" cp "${ICON_SRC}" "${ICON_DST}" chmod u+x "${ICON_DST}" - # Mark as trusted - if which gio >/dev/null 2>/dev/null; then - gio set -t string "${ICON_DST}" metadata::xfce-exe-checksum "$(sha256sum "${ICON_SRC}" | awk '{print $1}')" - fi + # # Mark as trusted + # if which gio >/dev/null 2>/dev/null; then + # gio set -t string "${ICON_DST}" metadata::xfce-exe-checksum "$(sha256sum "${ICON_SRC}" | awk '{print $1}')" + # fi fi fi } @@ -73,9 +81,9 @@ function _font_install() { FONT_DIR="${WINEPREFIX}/drive_c/windows/Fonts" echo 'Installing Fonts...' - curl -s "${FONT_URL}" -o "${DST_FONT}/nanum-all.zip" + curl -s "${FONT_URL}" -o "${DST_FONT}/nanum-all.zip" 2>/dev/null ! command -v unzip &>/dev/null && sudo pacman -Sy unzip - unzip "${DST_FONT}/nanum-all.zip" -d "${DST_FONT}" + unzip "${DST_FONT}/nanum-all.zip" -d "${DST_FONT}" 2>/dev/null find "${DST_FONT}" -type f -name "*.ttf" -exec mv -f {} "${FONT_DIR}" \; rm -rf "${DST_FONT}" } @@ -114,4 +122,4 @@ function main() { } # Execute main function -main "$@" || exit 1 +main "$@" |
