aboutsummaryrefslogtreecommitdiffstats
path: root/main/sprunge/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-07-11 12:48:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-07-11 12:54:03 +0000
commit4de8b64c3b5bdf3a5d15e8a146646eed73e034e7 (patch)
tree344d93dfffdc1eba6859eafc010a7bf4751f9fe6 /main/sprunge/APKBUILD
parentf4f3b7aadab151bf8d196fa7674f83d954bf6e02 (diff)
downloadaports-4de8b64c3b5bdf3a5d15e8a146646eed73e034e7.tar.bz2
aports-4de8b64c3b5bdf3a5d15e8a146646eed73e034e7.tar.xz
main/sprunge: moved from testing
Diffstat (limited to 'main/sprunge/APKBUILD')
-rw-r--r--main/sprunge/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/main/sprunge/APKBUILD b/main/sprunge/APKBUILD
new file mode 100644
index 0000000000..5ae053dcec
--- /dev/null
+++ b/main/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
+}
+