# Maintainer: TROM <contact@tromsite.com>
pkgname=tromjaro-layout-switcher
pkgver=1.4
pkgrel=0
pkgdesc="TROMjaro Layout switcher application"
arch=(any)
url=""
license=(unknown)
depends=('yad'
         'zensu'
         'xfce4-panel-profiles'
         'vala-panel-appmenu-xfce-git'
         'vala-panel-appmenu-common-git'
         'libdbusmenu-gtk2'
         'appmenu-gtk-module')
optdepends=('vala-panel-appmenu-registrar')
provides=('tromjaro-layout-switcher')
backup=()
options=(!strip)
source=("layout-switcher"
        "tromjaro-layout-switcher.desktop"
        "tromjaro-layout-switcher.svg"
        "icons.zip::https://www.drive.tromsite.com/s/SWmAcokLcxLB3gM/download"
        "profiles.zip::https://www.drive.tromsite.com/s/6dHoNjar9wJzeLd/download")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
package() {
    # copy icons
    install -d ${pkgdir}/usr/share/tromjaro-layout-switcher/icons
    install -Dm644 ${srcdir}/icons/*                            ${pkgdir}/usr/share/tromjaro-layout-switcher/icons

    # copy profiles
    install -d ${pkgdir}/usr/share/tromjaro-layout-switcher/profiles
    install -Dm644 ${srcdir}/profiles/*                            ${pkgdir}/usr/share/tromjaro-layout-switcher/profiles


    # copy executables
    install -Dm644  ${srcdir}/tromjaro-layout-switcher.desktop            ${pkgdir}/usr/share/applications/tromjaro-layout-switcher.desktop
	install -Dm755  ${srcdir}/layout-switcher                    ${pkgdir}/usr/bin/tromjaro-layout-switcher

    # copy icon
    install -d ${pkgdir}/usr/share/icons/hicolor/scalable/apps
    install -Dm644 ${srcdir}/tromjaro-layout-switcher.svg                            ${pkgdir}/usr/share/icons/hicolor/scalable/apps
                
}