# Contributor: solsTiCe d'Hiver <solstice.dhiver@gmail.com>
pkgname=pastebinit
pkgver=1.1
pkgrel=0
pkgdesc="A software that lets you send anything you want directly to a pastebin from the command line"
arch=(any)
url="http://launchpad.net/pastebinit"
license=("GPL")
depends=("python")
makedepends=("asciidoc")
source=(http://launchpad.net/pastebinit/trunk/$pkgver/+download/pastebinit-$pkgver.tar.gz)
build() {
cd $startdir/src/$pkgname-$pkgver
mkdir -p $pkgdir/usr/{bin,share/man/man1,share/locale} $pkgdir/etc
install -m 755 pastebinit $pkgdir/usr/bin
cp -a pastebin.d $pkgdir/etc
a2x -f manpage pastebinit.xml
install -m 644 pastebinit.1 $pkgdir/usr/share/man/man1
cd po
make
cp -a mo/* $pkgdir/usr/share/locale
}