Commit b733b0e6 authored by tcely's avatar tcely Committed by Natanael Copa

main/sprunge: add dpaste-de subpackage

parent af825005
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sprunge
pkgver=0.6
pkgrel=1
pkgrel=2
pkgdesc="Helper script to paste things to http://sprunge.us"
url="http://sprunge.us"
arch="noarch"
......@@ -10,7 +10,7 @@ license="GPL-2.0"
depends="curl"
makedepends=
install=""
subpackages="tpaste dpaste ix"
subpackages="tpaste dpaste dpaste-de:dpaste_de ix"
source=""
_builddir="$srcdir"
......@@ -52,6 +52,17 @@ dpaste() {
install -Dm 0755 dpaste "$subpkgdir/usr/bin/dpaste"
}
dpaste_de() {
cd "$_builddir"
url="https://dpaste.de/"
pkgdesc="Helper script to paste things to $url"
printf > dpaste-de -- '%s\n' \
'#!/bin/sh' '' \
"exec curl --silent -F 'format=url' -F 'lexer=_text' -F 'content=<-' 'https://dpaste.de/api/' | sed -e 's,\$,/raw,'"
install -Dm 0755 dpaste-de "$subpkgdir/usr/bin/dpaste-de"
}
ix() {
cd "$_builddir"
url="http://ix.io"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment