Notes on creating a new package

last updated: Oct 20, 2023

I'm trying to package whisper.cpp as a library for homebrew

.PHONY: edit
edit:
	nvim /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/libwhisper.rb

.PHONY: audit
audit:
	brew audit --new libwhisper

.PHONY: install
install:
	brew install --build-from-source libwhisper

.PHONY: install
uninstall:
	- brew uninstall libwhisper

.PHONY: test
test:
	# I ended up writing a small C program to use both as the test in the
	# formula, as well as to test the installed library
	/usr/bin/clang test.c -I/opt/homebrew/Cellar/libwhisper/1.4.0/include -L/opt/homebrew/Cellar/libwhisper/1.4.0/lib -lwhisper -o test
	./test
	brew test libwhisper

I wanted to create a tap so that I could install in the meantime. for use in blisper (and maybe other experiments), so I:

↑ up