aboutsummaryrefslogtreecommitdiffstats
path: root/main/sprunge/APKBUILD
diff options
context:
space:
mode:
authortcely <tcely@users.noreply.github.com>2019-06-11 15:38:52 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-12 10:29:24 +0000
commitb733b0e63d514b339cb49c2ccb505701673e3a09 (patch)
tree0325b62b6e0c13e1ba0a75d21df6736f5460db01 /main/sprunge/APKBUILD
parentaf825005585c2212982c96c910fb83fe0251062b (diff)
downloadaports-b733b0e63d514b339cb49c2ccb505701673e3a09.tar.gz
aports-b733b0e63d514b339cb49c2ccb505701673e3a09.tar.bz2
aports-b733b0e63d514b339cb49c2ccb505701673e3a09.tar.xz
main/sprunge: add dpaste-de subpackage
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"