ports/contrib (3.6): glow: initial commit, version 1.4.1
commit c2b83121a2afb270c9420613bcc09df4c9b3b42c Author: Tim Biermann <tbier@posteo.de> Date: Fri Jul 2 22:40:41 2021 +0000 glow: initial commit, version 1.4.1 diff --git a/glow/.footprint b/glow/.footprint new file mode 100644 index 000000000..c28da0da3 --- /dev/null +++ b/glow/.footprint @@ -0,0 +1,3 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/glow diff --git a/glow/.signature b/glow/.signature new file mode 100644 index 000000000..843853684 --- /dev/null +++ b/glow/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF3xqBLZg7nx6okVZPCzX19QWL70jSopV8qbu8PaTEXBYX+vu1/x/hXlWpmB4orpo3uKHt0cRb5UE6gVP1OYvOBAo= +SHA256 (Pkgfile) = 4f3ec872c20fc351f0181af3a599e8cc3db0f2364378ac7de08ebddeb8fe9830 +SHA256 (.footprint) = ab2b696a3517f67ce535f223aa4e8b36b498ce1463ecaeecf1258f6ceb537840 +SHA256 (glow-1.4.1.tar.gz) = ff6dfd7568f0bac5144ffa3a429ed956dcbdb531487ef6e38ac61365322c9601 diff --git a/glow/Pkgfile b/glow/Pkgfile new file mode 100644 index 000000000..573f1ebf7 --- /dev/null +++ b/glow/Pkgfile @@ -0,0 +1,29 @@ +# Description: Markdown renderer for the CLI +# URL: https://github.com/charmbracelet/glow +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: go + +name=glow +version=1.4.1 +release=1 +source=(https://github.com/charmbracelet/glow/archive/v$version/glow-$version.tar.gz) + +build() { + cd $name-$version + + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" + + mkdir "$PKGMK_SOURCE_DIR/gopath" || true + export GOPATH="$PKGMK_SOURCE_DIR/gopath" + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -o glow . + install -Dm755 glow $PKG/usr/bin/glow +}
participants (1)
-
crux@crux.nu