File PKGBUILD of Package clatexmath

# Arch PKGBUILD for cLaTeXMath
# Copyright (C) 2021 Florian "sp1rit" <sp1ritCS@protonmail.com>
# 
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
# 
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.
#
# Maintainer: sp1rit <sp1ritCS@protonmail.com>

_basename=clatexmath
pkgname=clatexmath
pkgver=0
pkgrel=1
pkgdesc="A dynamic, cross-platform, and embeddable LaTeX rendering library"
arch=(any)
url="https://github.com/NanoMichael/cLaTeXMath"
license=('MIT')
depends=("gtkmm3" "gtksourceviewmm" "tinyxml2")
makedepends=("meson")
provides=("${_basename}")
source=("${_basename}-${pkgver}.tar.xz")
sha256sums=("SKIP")

prepare() {
	cd "${srcdir}/${_basename}-${pkgver}"
	arch-meson . _build
}

build() {
	cd "${srcdir}/${_basename}-${pkgver}"
	ninja -C _build
}

package() {
	cd "${srcdir}/${_basename}-${pkgver}"
	DESTDIR="${pkgdir}" meson install -C _build
}
openSUSE Build Service is sponsored by