app-text/md2png-bin - 0.5.12 (arrans-overlay)

Search

Package Information

Description:
Render Markdown directly to PNG or JPEG images with a single static Go binary.
Homepage:
https://github.com/arran4/md2png
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
0.5.12 8 ~amd64 ~arm ~arm64 0
View Raw Ebuild
# Generated via: https://github.com/arran4/arrans_overlay/blob/main/.github/workflows/app-text-md2png-bin-update.yaml
EAPI=8
DESCRIPTION="Render Markdown directly to PNG or JPEG images with a single static Go binary."
HOMEPAGE="https://github.com/arran4/md2png"
SRC_URI="
	amd64? (  https://github.com/arran4/md2png/releases/download/v${PV}/md2png_${PV}_Linux_x86_64.tar.gz -> ${P}-md2png_${PV}_Linux_x86_64.tar.gz  )  
	arm? (  https://github.com/arran4/md2png/releases/download/v${PV}/md2png_${PV}_Linux_armv7.tar.gz -> ${P}-md2png_${PV}_Linux_armv7.tar.gz  )  
	arm64? (  https://github.com/arran4/md2png/releases/download/v${PV}/md2png_${PV}_Linux_arm64.tar.gz -> ${P}-md2png_${PV}_Linux_arm64.tar.gz  )  
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
IUSE=""

REQUIRED_USE=""

RDEPEND=""

S="${WORKDIR}"

src_unpack() {
  if use amd64; then
    unpack "${DISTDIR}/${P}-md2png_${PV}_Linux_x86_64.tar.gz" || die "Can't unpack archive file"
  fi
  if use arm; then
    unpack "${DISTDIR}/${P}-md2png_${PV}_Linux_armv7.tar.gz" || die "Can't unpack archive file"
  fi
  if use arm64; then
    unpack "${DISTDIR}/${P}-md2png_${PV}_Linux_arm64.tar.gz" || die "Can't unpack archive file"
  fi
}

src_install() {
  exeinto /opt/bin
  if use amd64; then
    newexe "md2png" "md2png" || die "Failed to install Binary"
  fi
  if use arm; then
    newexe "md2png" "md2png" || die "Failed to install Binary"
  fi
  if use arm64; then
    newexe "md2png" "md2png" || die "Failed to install Binary"
  fi
}

Manifest for 0.5.12

Type File Size Source URLs
DIST md2png-bin-0.5.12-md2png_0.5.12_Linux_arm64.tar.gz 3908261 bytes https://github.com/arran4/md2png/releases/download/v0.5.12/md2png_0.5.12_Linux_arm64.tar.gz
DIST md2png-bin-0.5.12-md2png_0.5.12_Linux_armv7.tar.gz 4039205 bytes https://github.com/arran4/md2png/releases/download/v0.5.12/md2png_0.5.12_Linux_armv7.tar.gz
DIST md2png-bin-0.5.12-md2png_0.5.12_Linux_x86_64.tar.gz 4148176 bytes https://github.com/arran4/md2png/releases/download/v0.5.12/md2png_0.5.12_Linux_x86_64.tar.gz