diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-07-22 15:02:04 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-07-22 15:02:11 +0200 |
commit | f85ee286dbd43e3208e518671a2807e77fb45630 (patch) | |
tree | adfb6fa2448e539af0e8751b15eb50c15615fa75 /main | |
parent | 33d2cec5e249960b1f976c9eb58e4f3d7ce94ab6 (diff) | |
download | aports-f85ee286dbd43e3208e518671a2807e77fb45630.tar.bz2 aports-f85ee286dbd43e3208e518671a2807e77fb45630.tar.xz |
main/sprunge: add tpaste support
Diffstat (limited to 'main')
-rw-r--r-- | main/sprunge/APKBUILD | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/sprunge/APKBUILD b/main/sprunge/APKBUILD index 84b23c5e93..ddeea30147 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.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 } |