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

main/sprunge: correct dpaste implementation

parent bc73b438
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sprunge
pkgver=0.6
pkgrel=0
pkgrel=1
pkgdesc="Helper script to paste things to http://sprunge.us"
url="http://sprunge.us"
arch="noarch"
......@@ -45,10 +45,11 @@ dpaste() {
cd "$_builddir"
url="http://dpaste.com"
pkgdesc="Helper script to paste things to $url"
mkdir -p "$subpkgdir"/usr/bin
printf "#!/bin/sh\n\nexec curl --silent -F 'content=<-' https://dpaste.de/api/ | sed -e 's/\"//g' -e 's/\$/\/raw\\\n/'" > \
"$subpkgdir"/usr/bin/dpaste || return 1
chmod 755 "$subpkgdir"/usr/bin/dpaste || return 1
printf > dpaste -- '%s\n' \
'#!/bin/sh' '' \
"exec curl --silent -F 'content=<-' 'http://dpaste.com/api/v2/' | sed -e 's/\$/.txt/'"
install -Dm 0755 dpaste "$subpkgdir/usr/bin/dpaste"
}
ix() {
......
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