# Maintainer: Alexander Rosenberg _pkgname=tagainijisho pkgname=${_pkgname}-git _pkgver=1.2.2 pkgver=1.2.2.1986 pkgrel=1 pkgdesc="A free Japanese dictionary and learning assistant" url='https://github.com/Gnurou/tagainijisho' arch=('x86_64') provides=("$_pkgname") license=('GPL3') makedepends=('ninja' 'cmake') depends=('qt6-base') source=('git+https://github.com/Gnurou/tagainijisho.git') sha256sums=('SKIP') pkgver() { cd "$_pkgname" revs_count="$(git rev-list --count HEAD)" printf '%s.%s' $_pkgver "$revs_count" } build() { cmake -B build -GNinja -DCMAKE_INSTALL_PREFIX="/usr/" $_pkgname ninja -C build } package() { export DESTDIR=$pkgdir cmake --install build }