🔒 Repository is read-only – file editing is disabled.

recipes/gui/galculator/PAGBUILD.yaml main

37 linii Raw ← Powrót
12345678910111213141516171819202122232425262728293031323334353637
pkgname: galculator
pkgver: '2.1.4'
pkgrel: '4'
pkgdesc: 'GTK+ based scientific calculator'
url: 'https://galculator.sourceforge.net/'
arch: x86_64
depends:
- 'hicolor-icon-theme'
- 'desktop-file-utils'

makedepends:
- gtk3

source:
- 'https://github.com/galculator/galculator/archive/refs/tags/v${pkgver}.tar.gz'

sha256sums:
- SKIP

build: |
  # quadmath.h w rootfs leży tylko w katalogu include starszego GCC
  # (np. .../15.2.0/include), a aktywny kompilator to nowszy – dołóż ścieżkę.
  QMH=$(find /usr/lib/gcc -name quadmath.h -print -quit 2>/dev/null)
  if [ -n "$QMH" ]; then
    CFLAGS+=" -I$(dirname "$QMH")"
  fi
  CFLAGS+=' -fcommon'
  cd ${pkgname}-${pkgver}
  autoreconf -fi   # snapshot z git nie zawiera configure
  ./configure \
    --prefix=/usr
  make

  make DESTDIR=${PKGDIR} install

package: |
  true