Package Details: microtex-git 2022.12.23-1

Git Clone URL: https://aur.archlinux.org/microtex-git.git (read-only, click to copy)
Package Base: microtex-git
Description: A dynamic, cross-platform, and embeddable LaTeX rendering library
Upstream URL: https://github.com/NanoMichael/MicroTex
Licenses: MIT
Provides: clatexmath, microtex
Submitter: malacology
Maintainer: malacology
Last Packager: malacology
Votes: 2
Popularity: 0.000000
First Submitted: 2023-03-25 06:41 (UTC)
Last Updated: 2023-03-25 06:49 (UTC)

Dependencies (5)

Required by (2)

Sources (1)

Latest Comments

sp1rit commented on 2021-12-18 12:24 (UTC) (edited on 2021-12-18 12:25 (UTC) by sp1rit)

@FabioLotix,

this pkgbuild need conflicts=(clatexmath)

it already provides=("clatexmath"), and to my knowledge that should be enough.

the program license need to be installed in "${pkgdir}/usr/share/licenses/${pkgname}/"

I'll fix the license :)

The license inside the pkgbuild in completely not needed as pkgbuild are generic enough to be not worth of a license

IANAL, but I'm quite sure that this is not true. I think one can call rpm specfiles and pacman PKGBUILDs basically the same thing for different package managers. And on openSUSE, all specfiles must have a license header attached, "For legal reasons" (https://en.opensuse.org/openSUSE:Specfile_guidelines#Specfile_Licensing), which implies that they are very much copyrightable. On fedora one doesn't need to this, because there you actually have to sign (https://fedoraproject.org/wiki/Legal:Fedora_Project_Contributor_Agreement) that license anything you contribute without an explicit free license attached under MIT / CC BY-SA.

Arch Linux for s390x is new to me

yeah, I just put all arches where I know clatexmath will compile successfuly (basically it only doesn't on riscv64), in case AL will be ported to s390x at some point in the future so then they/I don't have to fix the pkgbuild when makepkg refuses to run. It's mostly an issue of AL not having something like debians/dpkgs Multi-Arch key to differentiate between any with architecture dependet code and without.

FabioLolix commented on 2021-12-17 16:16 (UTC) (edited on 2021-12-17 16:29 (UTC) by FabioLolix)

Hello,

  • this pkgbuild need conflicts=(clatexmath)
  • the program license need to be installed in "${pkgdir}/usr/share/licenses/${pkgname}/"
  • The license inside the pkgbuild in completely not needed as pkgbuild are generic enough to be not worth of a license
  • Arch Linux for s390x is new to me

sp1rit commented on 2021-12-16 13:37 (UTC)

@malacology, pkgconfig is part of base-devel. You may only build AUR packages if you have base-devel installed.

cmake is not needed, as all dependencies are searched via pkgconfig.

fontconfig should be installed as a dependency of gtkmm (-> gtk3 -> cairo -> fontconfig)

Building clatexmath in a clean OCI container and on OBS was never an issue, so I'm left wondering how you ended up with such a system?

malacology commented on 2021-12-16 04:13 (UTC) (edited on 2021-12-16 04:14 (UTC) by malacology)

it should add pkgconfig, cmake and fontconfig into it

_basename=clatexmath
pkgname="${_basename}-git"
pkgver=r484.dc32540
pkgrel=1
pkgdesc="A dynamic, cross-platform, and embeddable LaTeX rendering library"
arch=("x86_64" "aarch64" "i686" "armv7h" "s390x")
url="https://github.com/NanoMichael/cLaTeXMath"
license=('MIT')
depends=("gtkmm3" "fontconfig" "gtksourceviewmm" "tinyxml2")
makedepends=("pkgconf" "git" "cmake" "meson")
provides=("${_basename}")
source=("${_basename}::git+https://github.com/NanoMichael/cLaTeXMath.git")
sha256sums=("SKIP")
pkgver() {
    cd "${srcdir}/${_basename}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

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

package() {
    cd "${srcdir}/${_basename}"
    DESTDIR="${pkgdir}" meson install -C _build
}

malacology commented on 2021-12-14 22:27 (UTC)

The Meson build system
Version: 0.60.2
Source dir: /home/guoyi/.cache/yay/clatexmath-git/src/clatexmath
Build dir: /home/guoyi/.cache/yay/clatexmath-git/src/clatexmath/_build
Build type: native build
Project name: clatexmath
Project version: 0.0.4
C++ compiler for the host machine: c++ (gcc 11.1.0 "c++ (GCC) 11.1.0")
C++ linker for the host machine: c++ ld.bfd 2.36.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Did not find pkg-config by name 'pkg-config'
Found Pkg-config: NO
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency fontconfig found: NO 

src/platform/cairo/meson.build:4:0: ERROR: Pkg-config binary for machine MachineChoice.HOST not found. Giving up.

ccorn commented on 2021-04-26 12:53 (UTC)

Minor changes:

  • The built package contains binaries in a platform-dependent format (ELF), therefore arch is not any.
  • The makedepends have to include git for obvious reasons.
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,11 +21,11 @@ pkgname="${_basename}-git"
 pkgver=r211.44ea337
 pkgrel=1
 pkgdesc="A dynamic, cross-platform, and embeddable LaTeX rendering library"
-arch=(any)
+arch=(x86_64)
 url="https://github.com/NanoMichael/cLaTeXMath"
 license=('MIT')
 depends=("gtkmm3" "gtksourceviewmm")
-makedepends=("meson")
+makedepends=("git" "meson")
 provides=("${_basename}")
 source=("${_basename}::git+https://github.com/NanoMichael/cLaTeXMath.git")
 sha256sums=("SKIP")