diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-06 13:29:25 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-06-06 13:29:25 +0000 |
commit | bff0631f0720ea0d40ec7df087aac26a69faa795 (patch) | |
tree | a19f0ca0db45c4fc376fd83f2c10a8321605b9b0 /testing | |
parent | e8f036a67c187e28e2bcd70e571bfde84a3e6476 (diff) | |
download | aports-bff0631f0720ea0d40ec7df087aac26a69faa795.tar.bz2 aports-bff0631f0720ea0d40ec7df087aac26a69faa795.tar.xz |
testing/sprunge: new aport
Helper script to paste things to http://sprunge.us
http://strunge.us
Diffstat (limited to 'testing')
-rw-r--r-- | testing/sprunge/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/sprunge/APKBUILD b/testing/sprunge/APKBUILD new file mode 100644 index 000000000..5ae053dce --- /dev/null +++ b/testing/sprunge/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=sprunge +pkgver=0.1 +pkgrel=0 +pkgdesc="Helper script to paste things to http://sprunge.us" +url="http://strunge.us" +arch="noarch" +license="GPLv2" +depends="curl" +makedepends= +install="" +subpackages= +source="" + +_builddir="$srcdir" +prepare() { + return 0 +} + +build() { + cd "$_builddir" + cat >"$_builddir"/sprunge<<EOF +#!/bin/sh +exec curl -F 'sprunge=<-' http://sprunge.us +EOF +} + +package() { + cd "$_builddir" + install -Dm755 sprunge "$pkgdir"/usr/bin/sprunge +} + |