diff options
Diffstat (limited to 'community/sqlitebrowser/PKGBUILD')
-rw-r--r-- | community/sqlitebrowser/PKGBUILD | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/community/sqlitebrowser/PKGBUILD b/community/sqlitebrowser/PKGBUILD index fd3c241d2..763d8c476 100644 --- a/community/sqlitebrowser/PKGBUILD +++ b/community/sqlitebrowser/PKGBUILD @@ -1,26 +1,35 @@ -# $Id: PKGBUILD 115282 2014-07-07 17:13:29Z spupykin $ +# $Id: PKGBUILD 116472 2014-07-28 09:51:01Z 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=3.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="SQLite Database browser is a light GUI editor for SQLite databases, built on top of Qt" arch=('i686' 'x86_64') url="http://sqlitebrowser.org/" license=('GPL') depends=('qt5-base' 'sqlite' 'libxkbcommon-x11') +makedepends=('cmake') source=(https://github.com/sqlitebrowser/sqlitebrowser/archive/sqlb-$pkgver.tar.gz) md5sums=('8e0edc6b14230e3933aa68a4731d9bd3') +prepare() { + cd $srcdir/$pkgname-sqlb-$pkgver + sed -i 's|Icon=.*|Icon=sqlitebrowser|' distri/sqlitebrowser.desktop +} + build() { cd $srcdir/$pkgname-sqlb-$pkgver - qmake-qt5 QMAKE_INCDIR="/usr/include/qt/QtWidgets /usr/include/qt/QtPrintSupport/" + cmake -DUSE_QT5=TRUE -DCMAKE_INSTALL_PREFIX=/usr . make } package() { cd $srcdir/$pkgname-sqlb-$pkgver - install -Dm0755 src/$pkgname $pkgdir/usr/bin/$pkgname + make install DESTDIR=$pkgdir + install -Dm0644 distri/sqlitebrowser.desktop $pkgdir/usr/share/applications/sqlitebrowser.desktop + install -dm0755 $pkgdir/usr/share/icons/ + install -m0644 images/sqlitebrowser.{png,svg} $pkgdir/usr/share/icons/ } |