diff --git a/arch/tagainijisho-git/.gitignore b/arch/tagainijisho-git/.gitignore new file mode 100644 index 0000000..ea358ef --- /dev/null +++ b/arch/tagainijisho-git/.gitignore @@ -0,0 +1 @@ +tagainijisho/ diff --git a/arch/tagainijisho-git/PKGBUILD b/arch/tagainijisho-git/PKGBUILD new file mode 100644 index 0000000..4835b5e --- /dev/null +++ b/arch/tagainijisho-git/PKGBUILD @@ -0,0 +1,33 @@ +# 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 +}