Commit 5ca3ab49 authored by Chaoting Liu's avatar Chaoting Liu

sqliteman: apply patch for qt5

parent b3714162
Pipeline #1711 passed with stages
in 3 minutes and 50 seconds
This diff is collapsed.
Resolves underlinking issue causing build failure on uclibc.
Author: René Rhéaume <rene.rheaume@gmail.com>
Gentoo-bug: 587076
--- a/sqliteman/CMakeLists.txt
+++ b/sqliteman/CMakeLists.txt
@@ -183,7 +183,10 @@ IF (WIN32)
# don't use console subsystem
IF (MINGW)
TARGET_LINK_LIBRARIES(${EXE_NAME} "-mwindows")
- ENDIF (MINGW)
+ ENDIF (MINGW)
+ELSE (WIN32)
+ FIND_PACKAGE(Threads)
+ TARGET_LINK_LIBRARIES(${EXE_NAME} ${CMAKE_THREAD_LIBS_INIT})
ENDIF (WIN32)
diff -ura sqliteman-1.2.2/CMakeLists.txt sqliteman-1.2.2patched/CMakeLists.txt
--- sqliteman-1.2.2/CMakeLists.txt 2018-09-18 21:32:23.983974807 +0400
+++ sqliteman-1.2.2patched/CMakeLists.txt 2018-09-18 21:46:43.110647913 +0400
@@ -133,6 +133,6 @@
)
INSTALL(FILES
sqliteman/icons/sqliteman.png
- DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor"
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps"
)
ENDIF (WIN32)
#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas@chakra-project.org
# contributor Giuseppe calà <jiveaxe@gmail.com>
pkgname=sqliteman
pkgver=1.2.2
pkgrel=4
pkgrel=6
pkgdesc="The best developer's and/or admin's GUI tool for Sqlite3 in the world"
arch=('x86_64')
url="http://sqliteman.sf.net"
url="http://sqliteman.yarpen.cz/"
license=('GPL')
depends=('qt' 'qscintilla')
depends=('qscintilla-qt5')
makedepends=('cmake')
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('5ecdf710e23606e1b924f740ea69306d')
source=("https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz"
0001_qt5.patch
0002_lpthread.patch
0003_icons.patch)
md5sums=('5ecdf710e23606e1b924f740ea69306d'
'8e0fadd613f819d3814c24c28287c4e4'
'8e24fc6b9231e7307bd6a86af8f4796a'
'7976cef250c2a1fd49607cd5f1cd21d2')
prepare() {
cd ${pkgname}-${pkgver}
for patch in $(ls $srcdir| grep patch); do
patch -p1 -i $srcdir/$patch
done
# remove bundled lib
rm -rf $pkgname/qscintilla2
mkdir $srcdir/build
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
cmake . -DCMAKE_INSTALL_PREFIX:PATH=/usr
cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
cd build
make DESTDIR=${pkgdir} install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment