aboutsummaryrefslogtreecommitdiffstats
path: root/main/sprunge/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/sprunge/APKBUILD')
-rw-r--r--main/sprunge/APKBUILD15
1 files changed, 13 insertions, 2 deletions
diff --git a/main/sprunge/APKBUILD b/main/sprunge/APKBUILD
index d2e5bf5368..ed055b1b71 100644
--- a/main/sprunge/APKBUILD
+++ b/main/sprunge/APKBUILD
@@ -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"