diff --git a/Makefile b/Makefile index 7e35ced..dfce27d 100755 --- a/Makefile +++ b/Makefile @@ -16,6 +16,9 @@ ${TARGET}: go build -o bin/$@ ${LDFLAGS} cmd/$@/main.go go build -o bin/$@-clean ${LDFLAGS} cmd/$@-clean/main.go +install-jade: + go install github.com/Joker/jade/cmd/jade@latest + run: bin/${TARGET} -conf configs/config.yaml diff --git a/build/archlinux/PKGBUILD b/build/archlinux/PKGBUILD index aee6a6e..5992937 100644 --- a/build/archlinux/PKGBUILD +++ b/build/archlinux/PKGBUILD @@ -21,6 +21,10 @@ md5sums=('SKIP') build() { cd "$srcdir/$pkgname" + if [ ! -f "$(go env GOPATH)/bin/jade" ]; then + make DESTDIR="$pkgdir/" install-jade + fi + make DESTDIR="$pkgdir/" }