Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Adélie Package Tree
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Adélie Linux
Adélie Package Tree
Commits
28defca1
Commit
28defca1
authored
7 years ago
by
Max Rees
Browse files
Options
Downloads
Patches
Plain Diff
user/sprunge: new package
parent
34c88e2f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!13
user/sprunge: new package
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
user/sprunge/APKBUILD
+57
-0
57 additions, 0 deletions
user/sprunge/APKBUILD
with
57 additions
and
0 deletions
user/sprunge/APKBUILD
0 → 100644
+
57
−
0
View file @
28defca1
# 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\n
exec 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\n
exec 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\n
exec 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\n
exec curl -F f:1='<-' ix.io/"
>
\
"
$subpkgdir
"
/usr/bin/ix
chmod
755
"
$subpkgdir
"
/usr/bin/ix
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment