updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / lnav / PKGBUILD
blobabc470b3511ede5c28d8bc5fd92a4cc539971dfe
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=lnav
4 pkgver=0.4.0
5 pkgrel=2
6 pkgdesc="A curses-based tool for viewing and analyzing log files."
7 arch=(i686 x86_64)
8 url="http://tstack.github.com/lnav/"
9 license=('custom:BSD')
10 depends=('pcre' 'zlib' 'bzip2' 'sqlite3')
11 source=("http://cloud.github.com/downloads/tstack/$pkgname/$pkgname-$pkgver.tar.gz")
12 md5sums=('827a5d175796d13229c1d5a1bdd7b765')
14 build() {
15   cd "$srcdir/$pkgname-$pkgver"
17   # remove unneeded termcap link
18   sed -i "s| \-ltermcap||" configure
20   # use right type (cause build failure on i686)
21   sed -i "s|unsigned long|size_t|g" src/line_buffer.cc
23   ./configure --prefix=/usr \
24               --disable-static
25   make
28 package() {
29   cd "$srcdir/$pkgname-$pkgver"
31   make DESTDIR="$pkgdir/" install
33   # license
34   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
36   # readme
37   install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
40 # vim:set ts=2 sw=2 et: