# Maintainer: Integral-Tech <integral@murena.io>

pkgname=breeze-enhanced-catppuccin
_pkgname=BreezeEnhancedCatppuccin
pkgver=1.1
pkgrel=1
pkgdesc="A fork of the BreezeEnhanced KDE Window Decoration Theme with tweaked colors for Catppuccin Color Scheme"
arch=('x86_64')
url="https://github.com/diogogmatos/BreezeEnhancedCatppuccin"
license=('GPL3')
makedepends=('git' 'cmake' 'extra-cmake-modules' 'kglobalaccel5' 'kde-dev-utils' 'knotifications5' 'kwin' 'qt5-declarative')
depends=('kcoreaddons5' 'libxcb' 'kwindowsystem5' 'kdecoration' 'kiconthemes5' 'kwin')
source=("git+${url}.git")
sha256sums=('SKIP')

# pkgver() {
# 	cd "${_pkgname}/"
# 	git describe --long --tags | sed -e "s/V//" -e "s/-/./"| cut -d"-" -f1
# }

# pkgver() {
# 	cd "$srcdir/$_gitname"
# 	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
# }

pkgver() {
	cd "$srcdir/$_gitname"
	printf "1.%s" "$(git rev-list --count HEAD)"
}

build() {
	cd "${_pkgname}/"
	mkdir build && cd build
	cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DKDE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
	make
}

package() {
	cd "${_pkgname}/build/"
	make DESTDIR=${pkgdir} install
}
