#!/usr/bin/env bash
name='ki18n'
release='2'
version='6.0.0'
url='https://community.kde.org/Frameworks'
description='Advanced internationalization framework'
email='brkt8khn@gmail.com'
maintainer='brkt8khn'
license=('LGPL')
source=("https://download.kde.org/stable/frameworks/${version%.*}/ki18n-${version}.tar.xz")
depends=(qt6-base qt6-declarative)
makedepends=(doxygen extra-cmake-modules python)
sha256sums=('15cbfb73ef1d3954d6206755b6e6a9c86ea27be4b4db0c843d38494851bcc354')
group=(kde.frameworks)
uses=()
arch=('x86_64')

cd $name-$version

setup () {
cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_QCH=ON
}

build () {
    cmake --build build
}

package () {
    DESTDIR="$DESTDIR" cmake --install build
}

