glow: initial commit, version 1.4.1
This commit is contained in:
parent
d7979b03a0
commit
c2b83121a2
3
glow/.footprint
Normal file
3
glow/.footprint
Normal file
@ -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
|
5
glow/.signature
Normal file
5
glow/.signature
Normal file
@ -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
|
29
glow/Pkgfile
Normal file
29
glow/Pkgfile
Normal file
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user