mirror of
https://gitlab.com/EternalWanderer/sheet-parser.git
synced 2024-11-28 21:13:51 +01:00
New package version
This commit is contained in:
parent
8d9c796d60
commit
b42f531b5b
8
APKBUILD
8
APKBUILD
|
@ -2,7 +2,7 @@
|
||||||
# Maintainer: Marty Sluijtman <marty.wanderer@disroot.org>
|
# Maintainer: Marty Sluijtman <marty.wanderer@disroot.org>
|
||||||
pkgname=sheet-parser
|
pkgname=sheet-parser
|
||||||
pkgver=0.1
|
pkgver=0.1
|
||||||
pkgrel=0
|
pkgrel=1
|
||||||
pkgdesc="A little D&D character sheet parser written in go"
|
pkgdesc="A little D&D character sheet parser written in go"
|
||||||
url="https://gitlab.com/EternalWanderer/sheet-parser"
|
url="https://gitlab.com/EternalWanderer/sheet-parser"
|
||||||
arch="all"
|
arch="all"
|
||||||
|
@ -20,7 +20,9 @@ build() {
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
make install PREFIX=/usr DESTDIR="$pkgdir"
|
make install PREFIX=/usr DESTDIR="$pkgdir"
|
||||||
install -D -m 644 misc/auto-completion/zsh/_nnn \
|
install -D -m 644 zsh.completion "$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
||||||
"$pkgdir"/usr/share/zsh/site-functions/_$pkgname
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
95293910817dee22a1944e6c11d37eee44bb0d3dbb20446d099f6a5434b307d1a489106f98642644019bf08c80256235e797426027ff3cdb5e3ac372d1e885bc sheet-parser-0.1.tar.gz
|
||||||
|
"
|
||||||
|
|
21
Makefile
21
Makefile
|
@ -3,35 +3,28 @@ PREFIX = /usr/local
|
||||||
MANPREFIX = $(PREFIX)/share/man
|
MANPREFIX = $(PREFIX)/share/man
|
||||||
ZSH_COMPLETION_OUTPUT := zsh.completion
|
ZSH_COMPLETION_OUTPUT := zsh.completion
|
||||||
|
|
||||||
SRC = main.go go.mod sheetContent.go
|
SRC = main.go go.mod sheetContent.go go.sum
|
||||||
|
|
||||||
all: sheet-parser
|
all: sheet-parser
|
||||||
|
|
||||||
sheet-parser:
|
sheet-parser:
|
||||||
go build -o sheet-parser -buildvcs=false
|
go build -o sheet-parser -trimpath
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f sheet-parser sheet-parser-$(VERSION).tar.gz
|
rm -f sheet-parser sheet-parser-$(VERSION).tar.gz
|
||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
mkdir -p sheet-parser-$(VERSION)
|
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)
|
tar -cf sheet-parser-$(VERSION).tar sheet-parser-$(VERSION)
|
||||||
gzip sheet-parser-$(VERSION).tar
|
gzip sheet-parser-$(VERSION).tar
|
||||||
rm -rf sheet-parser-$(VERSION)
|
rm -rf sheet-parser-$(VERSION)
|
||||||
|
|
||||||
install: all
|
install: all
|
||||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
install -m 0775 -d $(DESTDIR)$(PREFIX)/bin
|
||||||
cp -f sheet-parser $(DESTDIR)$(PREFIX)/bin
|
install -m 755 sheet-parser $(DESTDIR)$(PREFIX)/bin
|
||||||
chmod 775 $(DESTDIR)$(PREFIX)/bin/sheet-parser
|
install -m 0775 -d $(DESTDIR)$(MANPREFIX)/man1
|
||||||
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
install -m 644 sheet-parser.1 $(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)'
|
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(DESTDIR)$(PREFIX)/bin/sheet-parser\
|
rm -f $(DESTDIR)$(PREFIX)/bin/sheet-parser\
|
||||||
|
|
Loading…
Reference in a new issue