Commit f85ee286 authored by Carlo Landmeter's avatar Carlo Landmeter

main/sprunge: add tpaste support

parent 33d2cec5
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sprunge
pkgver=0.3
pkgver=0.4
pkgrel=0
pkgdesc="Helper script to paste things to http://sprunge.us"
url="http://sprunge.us"
......@@ -26,6 +26,8 @@ build() {
case \${0##*/} in
sprunge)
exec curl -F 'sprunge=<-' http://sprunge.us;;
tpaste)
exec curl -F 'tpaste=<-' http://tpaste.us;;
dpaste)
exec curl --silent -F 'content=<-' https://dpaste.de/api/ \
| sed -e 's/"//g' -e 's/\$/\/raw\n/';;
......@@ -38,7 +40,7 @@ EOF
package() {
cd "$_builddir"
install -Dm755 sprunge "$pkgdir"/usr/bin/sprunge || return 1
for i in dpaste ix; do
for i in tpaste dpaste ix; do
ln -s sprunge "$pkgdir"/usr/bin/$i || return 1
done
}
......
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