# Maintainer: Triplehx3 triplehx3@sparkleverse.co.uk
pkgname=TTK
pkgver=1.0.0
pkgrel=1
pkgdesc="Multi app toolkit that lives in the systray"
arch=('x86_64')
url="https://git.teslos.co.uk/Triplehx3/TTK-App"
license=('GPL')
groups=()
depends=()
makedepends=()
checkdepends=()
provides=(TTK)
conflicts=(TTK)
replaces=(TTK)
backup=()
options=()
install=
changelog=
source=("$pkgname-$pkgver::git+https://git.teslos.co.uk/Triplehx3/TTK-App.git#branch=main")
sha256sums=('SKIP')

prepare() {
	cd "$pkgname-$pkgver"
	git submodule update --init --recursive	
	qmake6
}

build() {
	cd "$pkgname-$pkgver"
	make
}

package() {
    cd "$pkgname-$pkgver"
    install -Dm755 TTK "$pkgdir/usr/bin/TTK"

    install -Dm644 TTK.desktop "$pkgdir/usr/share/applications/TTK.desktop"

    install -Dm644 images/smile.png "$pkgdir/usr/share/icons/hicolor/16x16/apps/TTK.png"
}