summaryrefslogtreecommitdiff
path: root/community/sqlitebrowser/PKGBUILD
blob: 8ebbadf1d939ac8c730f4889a269395e48bdaf10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 65487 2012-02-21 06:06:09Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Douglas Soares de Andrade <dsandrade@gmail.com>
# Contributor: Michael Fellinger <m.fellinger@gmail.com>

pkgname=sqlitebrowser
pkgver=2.0b1
_pkgrealver=200_b1
pkgrel=2
pkgdesc="SQLite Database browser is a light GUI editor for SQLite databases, built on top of QT"
arch=('i686' 'x86_64' 'mips64el')
url="http://sqlitebrowser.sf.net"
license=('GPL')
depends=('qt')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${_pkgrealver}_src.tar.gz)
md5sums=('5ca3d41cca454235b93ce72cd585dfe3')

build() {
  cd $srcdir/trunk/$pkgname
  sed -i 's|getline|xgetline|' sqlitebrowser/sqlbrowser_util.c
  sed -i 's|: name( 0 ) { }|: name( ) { }|' sqlitebrowser/sqlitedb.h
  qmake
  make LINK="g++ -ldl"
}

package() {
  cd $srcdir/trunk/$pkgname
  mkdir -p $pkgdir/usr/bin
  cp $pkgname/$pkgname $pkgdir/usr/bin/
}