# Maintainer : Ho Kim pkgname='kakaotalk' pkgver=0.1.0 pkgrel=4 pkgdesc='A mobile messaging app for smartphones operated by Kakao Corporation in South Korea' arch=( 'i686' 'x86_64' ) source=( 'https://www.kakao.com/ko/terms.html' 'LICENSE' 'kakaotalk' 'kakaotalk.desktop' 'kakaotalk.png' ) url='https://www.kakaocorp.com/page/service/service/KakaoTalk' license=( 'custom:kakaotalk' 'unlicense' ) depends=( 'bash' 'curl' 'desktop-file-utils' 'lib32-gst-plugins-good' 'wine' 'xdg-utils' ) sha256sums=( 'SKIP' 'SKIP' 'SKIP' 'SKIP' 'SKIP' ) update_desktop() { xdg-icon-resource forceupdate --theme hicolor &>/dev/null update-desktop-database -q } post_install() { update_desktop } post_upgrade() { post_install } post_remove() { update_desktop } package() { install -Dm755 -t "${pkgdir}/usr/bin" "${srcdir}/kakaotalk" install -Dm644 -t "${pkgdir}/usr/share/applications" "${srcdir}/kakaotalk.desktop" install -Dm644 -t "${pkgdir}/usr/share/icons/hicolor/256x256/apps" "${srcdir}/kakaotalk.png" install -Dm644 -t "${pkgdir}/usr/share/licenses/kakaotalk" "${srcdir}/LICENSE" install -Dm644 -t "${pkgdir}/usr/share/licenses/kakaotalk" "${srcdir}/terms.html" }