#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=pastebinit
pkgver=1.3.1
pkgrel=1gv
arch=noarch
source=(http://launchpad.net/pastebinit/trunk/$pkgver/+download/pastebinit-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "pastebinit.xml")
url=https://launchpad.net/pastebinit

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"pastebinit (pastebin from the command line)"
"pastebinit is a software that lets you send anything you want directly"
"to a pastebin from the command line."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	mkdir -p $startdir/pkg/usr/bin
	cp pastebinit $startdir/pkg/usr/bin/
	mkdir -p $startdir/pkg/etc/pastebin.d
	cp pastebin.d/* $startdir/pkg/etc/pastebin.d/

	# translations
	cd po
	make
	mkdir -p $startdir/pkg/usr/share/locale/
	cp -R mo/* $startdir/pkg/usr/share/locale/
} 
