summaryrefslogtreecommitdiffstats
path: root/testing/sprunge/APKBUILD
blob: 5ae053dcecbb93243b1f57b50171875d6f49346f (plain)
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
# 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
}