wgetpaste: new package

This commit is contained in:
Robert Djubek 2011-07-03 11:23:28 +08:00 committed by Mike Rosset
parent f41293aadb
commit ccb6496890
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,17 @@
#!/bin/bash
# add this to /etc/wgetpaste.conf or ~/.wgetpaste.conf to set some defaults
# set default nick
DEFAULT_NICK=zlin
# change the default service
DEFAULT_SERVICE="zlin"
# change default language for the ca and the osl services
DEFAULT_LANGUAGE_ca="Bash"
DEFAULT_LANGUAGE_osl="Diff"
# change default expiration period for the ca service
DEFAULT_EXPIRATION_ca="1 week"

View file

@ -0,0 +1,26 @@
# Template file for 'wgetpaste'
pkgname=wgetpaste
version=2.18
distfiles="http://wgetpaste.zlin.dk/$pkgname-$version.tar.bz2"
build_style=custom-install
short_desc="A script that automates pasting to a number of pastebin services"
maintainer="Robert Djubek <envy1988@gmail.com>"
homepage="http://wgetpaste.zlin.dk/"
license="Public domain"
checksum=95ee46eac37ca74ce960c1726afc19f4a1dde4d1875ac860fdc5e45d3cb05d3e
long_desc="
A script that automates pasting to a number of pastebin services"
Add_dependency full bash
Add_dependency full wget
Add_dependency full sed
do_install()
{
install -Dm755 ${pkgname} ${DESTDIR}/usr/bin/${pkgname}
install -Dm644 _${pkgname} ${DESTDIR}/usr/share/zsh/site-functions/_${pkgname}
install -Dm644 ${FILESDIR}/${pkgname}.example \
${DESTDIR}/usr/share/${pkgname}/${pkgname}.example
sed -n '2,5p' ${pkgname} > LICENSE
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/${pkgname}/LICENSE
}