Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions srcpkgs/witr/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Template file for 'witr'
pkgname=witr
version=0.1.1
revision=1
build_style=go
go_import_path=github.com/pranshuparmar/witr
go_package="./cmd/witr"
go_ldflags="-X main.version=v${version} -X main.commit=v${version}"
short_desc="Tool to determine why a process is running"
maintainer="Filip Rojek <filip@filiprojek.cz>"
license="Apache-2.0"
homepage="https://github.com/pranshuparmar/witr"
changelog="https://github.com/pranshuparmar/witr/releases"
distfiles="https://github.com/pranshuparmar/witr/archive/refs/tags/v${version}.tar.gz"
checksum=5d697999be5684a2723d92e649a72c80ca2df464f6e7dcf5e52551b5ee9194fd

pre_build() {
local _date
if [ "$SOURCE_DATE_EPOCH" ]; then
_date="$(date --utc --date "@$SOURCE_DATE_EPOCH" "+%Y-%m-%d")"
go_ldflags+=" -X main.buildDate=${_date}"
fi
}

post_install() {
vman docs/witr.1
}