New package version

This commit is contained in:
Nox Sluijtman 2022-08-21 23:33:09 +02:00
parent 8d9c796d60
commit b42f531b5b
2 changed files with 12 additions and 17 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Marty Sluijtman <marty.wanderer@disroot.org>
pkgname=sheet-parser
pkgver=0.1
pkgrel=0
pkgrel=1
pkgdesc="A little D&D character sheet parser written in go"
url="https://gitlab.com/EternalWanderer/sheet-parser"
arch="all"
@ -20,7 +20,9 @@ build() {
package() {
make install PREFIX=/usr DESTDIR="$pkgdir"
install -D -m 644 misc/auto-completion/zsh/_nnn \
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
install -D -m 644 zsh.completion "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
}
sha512sums="
95293910817dee22a1944e6c11d37eee44bb0d3dbb20446d099f6a5434b307d1a489106f98642644019bf08c80256235e797426027ff3cdb5e3ac372d1e885bc sheet-parser-0.1.tar.gz
"

View file

@ -3,35 +3,28 @@ PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
ZSH_COMPLETION_OUTPUT := zsh.completion
SRC = main.go go.mod sheetContent.go
SRC = main.go go.mod sheetContent.go go.sum
all: sheet-parser
sheet-parser:
go build -o sheet-parser -buildvcs=false
go build -o sheet-parser -trimpath
clean:
rm -f sheet-parser sheet-parser-$(VERSION).tar.gz
dist: clean
mkdir -p sheet-parser-$(VERSION)
cp -R LICENSE Makefile README.md sheet-parser.1 $(SRC) sheet-parser-$(VERSION)
cp -R $(ZSH_COMPLETION_OUTPUT) LICENSE Makefile README.md sheet-parser.1 $(SRC) sheet-parser-$(VERSION)
tar -cf sheet-parser-$(VERSION).tar sheet-parser-$(VERSION)
gzip sheet-parser-$(VERSION).tar
rm -rf sheet-parser-$(VERSION)
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f sheet-parser $(DESTDIR)$(PREFIX)/bin
chmod 775 $(DESTDIR)$(PREFIX)/bin/sheet-parser
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
cat sheet-parser.1 > $(DESTDIR)$(MANPREFIX)/man1/sheet-parser.1
chmod 644 $(DESTDIR)$(MANPREFIX)/man1/sheet-parser.1
install-completions:
@install -d $(DESTDIR)$(PREFIX)/share/zsh/site-functions
@install -m 0644 $(ZSH_COMPLETION_OUTPUT) $(DESTDIR)$(PREFIX)/share/zsh/site-functions/_sheet-parser
@printf '%s\n' '$(OK)'
install -m 0775 -d $(DESTDIR)$(PREFIX)/bin
install -m 755 sheet-parser $(DESTDIR)$(PREFIX)/bin
install -m 0775 -d $(DESTDIR)$(MANPREFIX)/man1
install -m 644 sheet-parser.1 $(DESTDIR)$(MANPREFIX)/man1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/sheet-parser\