[arch-commits] Commit in sqlitebrowser/trunk (PKGBUILD)

Sergej Pupykin spupykin at nymeria.archlinux.org
Fri May 17 06:22:27 EDT 2013


    Date: Friday, May 17, 2013 @ 12:22:27
  Author: spupykin
Revision: 91007

upgpkg: sqlitebrowser 2.0b1-4

upd

Modified:
  sqlitebrowser/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++++-----
 1 file changed, 12 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-17 10:22:23 UTC (rev 91006)
+++ PKGBUILD	2013-05-17 10:22:27 UTC (rev 91007)
@@ -6,23 +6,30 @@
 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')
 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() {
   cd $srcdir/trunk/$pkgname
   mkdir -p $pkgdir/usr/bin



More information about the arch-commits mailing list