Start of package

This commit is contained in:
Nox Sluijtman 2022-07-28 16:18:38 +02:00
parent 986f3cc01e
commit b280f95403
5 changed files with 144 additions and 0 deletions

30
APKBUILD Normal file
View file

@ -0,0 +1,30 @@
# Contributor: Michael Homer <mwh@mwh.geek.nz>
# Maintainer: Marty Sluijtman <marty.wanderer@disroot.org>
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
"

15
LICENSE Normal file
View file

@ -0,0 +1,15 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2022 Marty Sluijtman <marty@disroot.org>
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.

33
Makefile Normal file
View file

@ -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

3
README.md Normal file
View file

@ -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.

63
dice-roller.1 Normal file
View file

@ -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.