summaryrefslogtreecommitdiff
path: root/community/sqlitebrowser
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-05-18 12:31:40 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-05-18 12:31:40 +0200
commit63b47d2adad6c3c625196b2717bbd42283e9bb79 (patch)
treec337b068dad6577cc034d5857f7d1a4b0b4108c7 /community/sqlitebrowser
parentf86cb0311e96fae67e26edd6da00bda03f0c6160 (diff)
parent4e1091baf58d4d28f6bf3cc4fee8ea0bfd10a7a8 (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/fish/PKGBUILD community/python2-cchardet/PKGBUILD extra/cpio/PKGBUILD extra/gstreamer0.10-base/PKGBUILD
Diffstat (limited to 'community/sqlitebrowser')
-rw-r--r--community/sqlitebrowser/PKGBUILD19
1 files changed, 13 insertions, 6 deletions
diff --git a/community/sqlitebrowser/PKGBUILD b/community/sqlitebrowser/PKGBUILD
index aaaa0ba11..cb9016c33 100644
--- a/community/sqlitebrowser/PKGBUILD
+++ b/community/sqlitebrowser/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 85413 2013-03-01 10:40:34Z andrea $
+# $Id: PKGBUILD 91008 2013-05-17 10:22:46Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Douglas Soares de Andrade <dsandrade@gmail.com>
# Contributor: Michael Fellinger <m.fellinger@gmail.com>
@@ -6,21 +6,28 @@
pkgname=sqlitebrowser
pkgver=2.0b1
_pkgrealver=200_b1
-pkgrel=3
+pkgrel=4
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=('qt4')
+depends=('qt4' 'sqlite')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${_pkgrealver}_src.tar.gz)
md5sums=('5ca3d41cca454235b93ce72cd585dfe3')
-build() {
+prepare() {
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"
+ sed -i '/sqlite_source\/sqlite3.h/d' sqlitebrowser/sqlbrowser_util.c # Remove two useless #include
+ sed -i 's/"sqlite_source\/sqlite3.h"/<sqlite3.h>/' sqlitebrowser/sqlbrowser_util.h
+ sed -i -e '1i LIBS += -lsqlite3' -e '/sqlite_source/d' sqlitebrowser/sqlitebrowser.pro
+}
+
+build() {
+ cd $srcdir/trunk/$pkgname
+ qmake-qt4
+ make
}
package() {