Wrapper written in Go designed for package managers to unify software management commands between distros
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
375 B

GOBUILD ?= go build
all: main.go
$(GOBUILD)
install: PAK_CFG_MGR ?= apt
install: pak.toml pak
install -Dm755 pak $(DESTDIR)/usr/bin/pak
sed -i 's/activeManager = "\$PKGMANAGER"/activeManager = "$(PAK_CFG_MGR)"/' pak.toml
install -Dm644 pak.toml $(DESTDIR)/etc/pak.toml
installbinonly: pak
install -Dm755 pak $(DESTDIR)/usr/bin/pak
.PHONY: all install installbinonly