summaryrefslogtreecommitdiff
path: root/community/sqlitebrowser/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/sqlitebrowser/PKGBUILD')
-rw-r--r--community/sqlitebrowser/PKGBUILD29
1 files changed, 9 insertions, 20 deletions
diff --git a/community/sqlitebrowser/PKGBUILD b/community/sqlitebrowser/PKGBUILD
index a5e60dd48..6d3325e47 100644
--- a/community/sqlitebrowser/PKGBUILD
+++ b/community/sqlitebrowser/PKGBUILD
@@ -1,37 +1,26 @@
-# $Id: PKGBUILD 91008 2013-05-17 10:22:46Z spupykin $
+# $Id: PKGBUILD 113784 2014-06-30 12:01:05Z 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=4
-pkgdesc="SQLite Database browser is a light GUI editor for SQLite databases, built on top of QT"
+pkgver=3.1.0
+pkgrel=1
+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' 'sqlite')
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${_pkgrealver}_src.tar.gz)
-md5sums=('5ca3d41cca454235b93ce72cd585dfe3')
-
-prepare() {
- cd $srcdir/trunk/$pkgname
- sed -i 's|getline|xgetline|' sqlitebrowser/sqlbrowser_util.c
- sed -i 's|: name( 0 ) { }|: name( ) { }|' sqlitebrowser/sqlitedb.h
- 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
-}
+source=(https://github.com/sqlitebrowser/sqlitebrowser/archive/sqlb-$pkgver.tar.gz)
+md5sums=('17be1cdebcf79a906e6e206fc7cd6cde')
build() {
- cd $srcdir/trunk/$pkgname
+ cd $srcdir/$pkgname-sqlb-$pkgver
qmake-qt4
make
}
package() {
- cd $srcdir/trunk/$pkgname
- mkdir -p $pkgdir/usr/bin
- cp $pkgname/$pkgname $pkgdir/usr/bin/
+ cd $srcdir/$pkgname-sqlb-$pkgver
+ install -Dm0755 src/$pkgname $pkgdir/usr/bin/$pkgname
}