diff --git a/APKBUILD b/APKBUILD new file mode 100644 index 0000000..8052333 --- /dev/null +++ b/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Michael Homer +# Maintainer: Marty Sluijtman +pkgname=dragon-drag-and-drop +pkgver=1.2.0 +pkgrel=0 +pkgdesc="dragon - simple drag-and-drop source/sink for X or Wayland" +url="https://github.com/mwh/dragon" +arch="all" +license="GPL-3.0" +makedepends="gtk+3.0-dev" +subpackages="$pkgname-doc" +source="https://alpine.voidcruiser.nl/src/dragon-drag-and-drop-$pkgver.tar.gz" +options="!check" + +#prepare(){ +# default_prepare +#} + +build() { + echo "$pkgdir" + make +} + +package() { + make install PREFIX=/usr DESTDIR="$pkgdir" +} + +sha512sums=" +cc1c938060f9df34df7bd76909cc5b2c229c3668cc18bdfc1875233bc1dadd41573b9fefa80ed4488e54916962ad4f0fd5579f41d1ab0c4debd66886c51702dd dragon-drag-and-drop-1.2.0.tar.gz +" diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..97a60f0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,15 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + +Copyright (C) 2022 Marty Sluijtman + +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. + + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fd3814e --- /dev/null +++ b/Makefile @@ -0,0 +1,33 @@ +VERSION = 0.1 + +PREFIX = /usr/local +MANPREFIX = $(PREFIX)/share/man + +SRC = main.go go.mod + +all: dice-roller + +dice-roller: + go build -o dice-roller + +clean: + rm dice-roller + +dist: clean + mkdir -p dice-roller-$(VERSION) + cp -R LICENSE Makefile README.md $(SRC) dice-roller-$(VERSION) + tar -cf dice-roller-$(VERSION).tar + gzip dice-roller-$(VERSION).tar + rm -rf dice-roller-$(VERSION) + +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp -f dice-roller $(DESTDIR)$(PREFIX)/bin + chmod 775 $(DESTDIR)$(PREFIX)/bin/dice-roller + mkdir -p $(DESTDIR)$(MANPREFIX)/man1 + cat dice-roller.1 > $(DESTDIR)$(MANPREFIX)/man1/dice-roller.1 + chmod 644 $(DESTDIR)$(MANPREFIX)/man1/dice-roller.1 + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/dice-roller\ + $(DESTDIR)$(MANPREFIX)/man1/dice-roller.1 diff --git a/README.md b/README.md new file mode 100644 index 0000000..18906df --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Dice-roller + +This is a little dice roller chucked together because I couldn't be bothered to calculate every dicethrow in a rather unbalanced D&D campaign where a single attack could easily deal 5d8 damage every few turns. diff --git a/dice-roller.1 b/dice-roller.1 new file mode 100644 index 0000000..5e20344 --- /dev/null +++ b/dice-roller.1 @@ -0,0 +1,63 @@ +.TH DICE-ROLLER 1 +.SH NAME +dice-roller \- Dice roller utility written in GO +.SH SYNOPSIS +.B dragon +.OP -surfaces +.OP -throws +.OP -modifier +.OP -attacks +.OP -advantage +.OP -disatvantage +.PP +.B dragon +.OP --help +.PP +.B dragon +.OP --version +.SH DESCRIPTION +.B dragon +is a source/sink for drag-and-drop operations. Many programs, particularly +web applications, expect files to be dragged into them now. If you don't +habitually use a file manager that is a problem. Dragon creates a small window +to drag out or drop files into, instead. +.SH OPTIONS +.TP +.B -x --and-exit +exit after a single completed drop. +.TP +.B -t --target +act as a target instead of source. +.TP +.B -k --keep +with --target, keep files to drag out. +.TP +.B -p --print-path +with --target, print file paths instead of URIs. +.TP +.B -a --all +drag all files at once. +.TP +.B -A --all-compact +drag all files at once, only displaying the number of files. +.TP +.B -i --icon-only +only show icons in drag-and-drop windows. +.TP +.B -T --on-top +make window always-on-top. +.TP +.B -I --stdin +read filenames from stdin. +.TP +.B -s --thumb-size +set thumbnail size (default 96) +.TP +.B -v --verbose +be verbose. +.TP +.B --help +show help. +.TP +.B --version +show version details.