diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-29 07:24:54 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-29 07:25:34 +0000 |
commit | 81e793550fa300bebed406cafd3890726e942899 (patch) | |
tree | 697cd0321904a5e0248aede748de54c18c900d27 /main/sprunge | |
parent | 1379e532c54e492d3cae41231649daf2657e8a90 (diff) | |
download | aports-81e793550fa300bebed406cafd3890726e942899.tar.bz2 aports-81e793550fa300bebed406cafd3890726e942899.tar.xz |
main/sprunge: fix dpaste, add ix.io
Diffstat (limited to 'main/sprunge')
-rw-r--r-- | main/sprunge/APKBUILD | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/main/sprunge/APKBUILD b/main/sprunge/APKBUILD index 9e17e7e49c..84b23c5e93 100644 --- a/main/sprunge/APKBUILD +++ b/main/sprunge/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=sprunge -pkgver=0.2 +pkgver=0.3 pkgrel=0 pkgdesc="Helper script to paste things to http://sprunge.us" url="http://sprunge.us" @@ -27,15 +27,19 @@ case \${0##*/} in sprunge) exec curl -F 'sprunge=<-' http://sprunge.us;; dpaste) - exec curl --silent -F 'content=<-' http://dpaste.de/api/ \ - | sed -e 's/"//g' -e 's/$/raw\n/';; + exec curl --silent -F 'content=<-' https://dpaste.de/api/ \ + | sed -e 's/"//g' -e 's/\$/\/raw\n/';; + ix) + exec curl $opts -F f:1='<-' ix.io/;; esac EOF } package() { cd "$_builddir" - install -Dm755 sprunge "$pkgdir"/usr/bin/sprunge - ln -s sprunge "$pkgdir"/usr/bin/dpaste + install -Dm755 sprunge "$pkgdir"/usr/bin/sprunge || return 1 + for i in dpaste ix; do + ln -s sprunge "$pkgdir"/usr/bin/$i || return 1 + done } |