diff options
-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 } |