aboutsummaryrefslogtreecommitdiffstats
path: root/main/sprunge
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-11-16 20:16:55 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2015-11-16 20:16:55 +0100
commit7e74737e846498900ba2d4eb7fbd05594498b06f (patch)
tree65939e757bbafaf9e33a58d9045fa6286493d075 /main/sprunge
parent6168c5a743f0e1ed6ed7de65a44932403f12241b (diff)
downloadaports-7e74737e846498900ba2d4eb7fbd05594498b06f.tar.bz2
aports-7e74737e846498900ba2d4eb7fbd05594498b06f.tar.xz
main/sprunge: split other services into subpkgs
make it easier for users to find other services
Diffstat (limited to 'main/sprunge')
-rw-r--r--main/sprunge/APKBUILD27
1 files changed, 22 insertions, 5 deletions
diff --git a/main/sprunge/APKBUILD b/main/sprunge/APKBUILD
index ddeea30147..a3b51c225a 100644
--- a/main/sprunge/APKBUILD
+++ b/main/sprunge/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sprunge
-pkgver=0.4
+pkgver=0.5
pkgrel=0
pkgdesc="Helper script to paste things to http://sprunge.us"
url="http://sprunge.us"
@@ -10,7 +10,7 @@ license="GPLv2"
depends="curl"
makedepends=
install=""
-subpackages=
+subpackages="tpaste dpaste ix"
source=""
_builddir="$srcdir"
@@ -40,8 +40,25 @@ EOF
package() {
cd "$_builddir"
install -Dm755 sprunge "$pkgdir"/usr/bin/sprunge || return 1
- for i in tpaste dpaste ix; do
- ln -s sprunge "$pkgdir"/usr/bin/$i || return 1
- done
}
+tpaste() {
+ cd "$_builddir"
+ pkgdesc="Alpine Linux self hosted paste service"
+ url="http://tpaste.us"
+ install sprunge -Dm755 "$subpkgdir"/usr/bin/tpaste || return 1
+}
+
+dpaste() {
+ cd "$_builddir"
+ pkgdesc="Paste service written in python"
+ url="http://dpaste.com"
+ install sprunge -Dm755 "$subpkgdir"/usr/bin/dpaste || return 1
+}
+
+ix() {
+ cd "$_builddir"
+ pkgdesc="Command line pastebin"
+ url="http://ix.io"
+ install sprunge -Dm755 "$subpkgdir"/usr/bin/ix || return 1
+}