PaganOS Luna 0.6.0
PL EN DE
🔒 Repository is read-only – file editing is disabled.

recipes/gui/vectorcraft/PAGBUILD.yaml main

59 lines Raw ← Back
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
pkgname: vectorcraft
pkgver: '0.18.0'
pkgrel: '1'
pkgdesc: 'VectorCraft - otwarty edytor grafiki wektorowej (odpowiednik Illustratora), czysty Rust'
url: 'https://github.com/storytold/vectorcraft'
arch: x86_64
license:
- Apache-2.0

# Oficjalna binarka z GitHub Releases (jak chrome/vscodium/librewolf) — bez
# kompilacji Rusta. Aplikacja to ELF + katalog share/ (ikony, .desktop).
# Biblioteki GUI (Vulkan/EGL/X11/Wayland/xkbcommon) ladowane w runtime.
depends:
- glibc
- gcc
- alsa-lib
- mesa
- libglvnd
- vulkan-icd-loader
- xorg-libx11
- xorg-libxcursor
- libxcb
- wayland
- libxkbcommon
- hicolor-icon-theme
makedepends: []

source:
- 'https://github.com/storytold/vectorcraft/releases/download/v${pkgver}/vectorcraft-${pkgver}-linux-x86_64.tar.gz'

sha256sums:
- '76948b50ef78dd482a6ece06f10b7047937bbc0c05f5cf6bc43d88b07f74d826'

# pagsync --check-updates
update: |
  curl -fsSL --max-time 30 "https://api.github.com/repos/storytold/vectorcraft/releases/latest" \
    | python3 -c 'import json,sys; print(json.load(sys.stdin)["tag_name"].lstrip("v"))'

build: |
  _src="vectorcraft-${pkgver}-linux-x86_64"
  [ -d "$_src" ] || { echo "brak katalogu $_src" >&2; exit 1; }

  install -dm0755 "${PKGDIR}/usr/lib/vectorcraft" "${PKGDIR}/usr/bin"
  cp -a "$_src"/bin/. "${PKGDIR}/usr/lib/vectorcraft/"
  chmod 0755 "${PKGDIR}/usr/lib/vectorcraft/"*

  # RELATYWNE dowiazania — absolutne cele bywaly odrzucane przez starsze pag
  for _b in "${PKGDIR}/usr/lib/vectorcraft/"*; do
    [ -f "$_b" ] || continue
    ln -sfn "../lib/vectorcraft/${_b##*/}" "${PKGDIR}/usr/bin/${_b##*/}"
  done

  if [ -d "$_src/share" ]; then
    install -dm0755 "${PKGDIR}/usr/share"
    cp -a "$_src"/share/. "${PKGDIR}/usr/share/"
  fi

package: |
  true