mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 04:16:46 +02:00
main/sprunge: add tpaste support
This commit is contained in:
parent
33d2cec5e2
commit
f85ee286db
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user