diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2018-03-24 20:05:22 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2018-03-24 20:05:22 +0000 |
commit | 7bfb72695aa10840bc19400e173e58b2e536a0ac (patch) | |
tree | 83ed22d5e014e74a090f6db9ba8f23e9886e2a50 /user/sprunge/APKBUILD | |
parent | 97695f2bb92f85bc6982f220085dc45ad40134dd (diff) | |
parent | 28defca1c85159ae672e976ad55f17c462db728e (diff) | |
download | packages-7bfb72695aa10840bc19400e173e58b2e536a0ac.tar.gz packages-7bfb72695aa10840bc19400e173e58b2e536a0ac.tar.bz2 packages-7bfb72695aa10840bc19400e173e58b2e536a0ac.tar.xz packages-7bfb72695aa10840bc19400e173e58b2e536a0ac.zip |
Merge branch 'sprunge' into 'master'
user/sprunge: new package
See merge request !13
Diffstat (limited to 'user/sprunge/APKBUILD')
-rw-r--r-- | user/sprunge/APKBUILD | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/user/sprunge/APKBUILD b/user/sprunge/APKBUILD new file mode 100644 index 000000000..024486ea4 --- /dev/null +++ b/user/sprunge/APKBUILD @@ -0,0 +1,57 @@ +# 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" +license="GPL-2.0" +depends="curl" +makedepends= +install="" +subpackages="tpaste dpaste ix" +source="" +builddir="$srcdir" +options="!check" # Simple shell scripts; no test required. + +build() { + cd "$builddir" +} + +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 +} |