blob: bc7a3e2df9bb8f31af51cda1f2574a39938f971d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=sprunge
pkgver=0.6
pkgrel=0
pkgdesc="Helper script to paste things to http://sprunge.us"
url="http://sprunge.us"
arch="noarch"
options="!check" # Simple shell scripts; no test required.
license="GPL-2.0"
depends="curl"
makedepends=""
subpackages="tpaste dpaste ix"
source=""
builddir="$srcdir"
package() {
cd "$builddir"
mkdir -p "$pkgdir"/usr/bin
printf "#!/bin/sh\n\nexec curl -F 'sprunge=<-' http://sprunge.us" > \
"$pkgdir"/usr/bin/sprunge
chmod 755 "$pkgdir"/usr/bin/sprunge
}
tpaste() {
cd "$builddir"
url="http://tpaste.us"
pkgdesc="Helper script to paste things to $url"
mkdir -p "$subpkgdir"/usr/bin
printf "#!/bin/sh\n\nexec curl -F 'tpaste=<-' http://tpaste.us" > \
"$subpkgdir"/usr/bin/tpaste
chmod 755 "$subpkgdir"/usr/bin/tpaste
}
dpaste() {
cd "$builddir"
url="http://dpaste.com"
pkgdesc="Helper script to paste things to $url"
mkdir -p "$subpkgdir"/usr/bin
printf "#!/bin/sh\n\nexec curl --silent -F 'content=<-' https://dpaste.de/api/ | sed -e 's/\"//g' -e 's/\$/\/raw\\\n/'" > \
"$subpkgdir"/usr/bin/dpaste
chmod 755 "$subpkgdir"/usr/bin/dpaste
}
ix() {
cd "$builddir"
url="http://ix.io"
pkgdesc="Helper script to paste things to $url"
mkdir -p "$subpkgdir"/usr/bin
printf "#!/bin/sh\n\nexec curl -F f:1='<-' ix.io/" > \
"$subpkgdir"/usr/bin/ix
chmod 755 "$subpkgdir"/usr/bin/ix
}
|