updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pastebinit / PKGBUILD
blob40d9696f3daed422f2b6bd04f5acd57409b65cbe
1 # maintainer: Francois Boulogne <fboulogne at april dot org>
3 pkgname=pastebinit
4 pkgver=1.2
5 pkgrel=4
6 pkgdesc="Send anything you want directly to a pastebin from the command line"
7 arch=(any)
8 url="http://launchpad.net/pastebinit"
9 license=("GPL")
10 depends=("python2" "python-configobj" )
11 makedepends=("asciidoc")
12 source=(http://launchpad.net/pastebinit/trunk/${pkgver}/+download/pastebinit-${pkgver}.tar.gz) 
13 md5sums=( "676dca696755bb92dd485a2246b1d75d")
15 build() {
16         cd ${srcdir}/${pkgname}-${pkgver}
17         install -d $pkgdir/usr/{bin,share/man/man1,share/locale} $pkgdir/etc
18         #python 2
19         sed -i -e "s|#!/usr/bin/python$|#!/usr/bin/python2|" pastebinit
20         install -m 755 pastebinit $pkgdir/usr/bin
21         cp -a pastebin.d $pkgdir/usr/share
22         a2x -f manpage pastebinit.xml
23         install -m 644 pastebinit.1 $pkgdir/usr/share/man/man1
24         cd po
25         make
26         cp -a mo/* $pkgdir/usr/share/locale