mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
Added recipe for sqlitebrowser (#969)
This commit is contained in:
committed by
Jérôme Duval
parent
808543b968
commit
3ffe6092dc
73
dev-db/sqlitebrowser/sqlitebrowser-3.9.1.recipe
Normal file
73
dev-db/sqlitebrowser/sqlitebrowser-3.9.1.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="DB Browser for SQLite"
|
||||
DESCRIPTION="DB Browser for SQLite is a high quality, visual, open source tool \
|
||||
to create, design, and edit database files compatible with SQLite."
|
||||
HOMEPAGE="http://sqlitebrowser.org/"
|
||||
COPYRIGHT="2012-2016 Martin Kleusberg"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/sqlitebrowser/sqlitebrowser/archive/v$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="d0d2e06a69927ba1d0b955f3261ce70c61befc5bd5ddaa06752dae8bb4219ed8"
|
||||
SOURCE_FILENAME="sqlitebrowser-$portVersion.tar.gz"
|
||||
PATCHES="sqlitebrowser-$portVersion.patchset"
|
||||
ADDITIONAL_FILES="sqlitebrowser.rdef.in"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
sqlitebrowser$secondaryArchSuffix = $portVersion
|
||||
app:sqlitebrowser$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libQtCore$secondaryArchSuffix
|
||||
lib:libQtGui$secondaryArchSuffix
|
||||
lib:libsqlite3$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
libqt4${secondaryArchSuffix}_devel
|
||||
devel:libsqlite3$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:qmake
|
||||
cmd:sed
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
qmake -o Makefile $sourceDir/sqlitebrowser.pro
|
||||
make $jobArgs
|
||||
|
||||
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
||||
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
||||
local MINOR="`echo "$portVersion" | cut -d. -f3`"
|
||||
|
||||
sed \
|
||||
-e "s|@MAJOR@|$MAJOR|" \
|
||||
-e "s|@MIDDLE@|$MIDDLE|" \
|
||||
-e "s|@MINOR@|$MINOR|" \
|
||||
$portDir/additional-files/sqlitebrowser.rdef.in > sqlitebrowser.rdef
|
||||
|
||||
rc $portDir/additional-files/sqlitebrowser.rdef -o $sourceDir/src/sqlitebrowser.rsrc
|
||||
|
||||
xres -o $sourceDir/src/sqlitebrowser $sourceDir/src/sqlitebrowser.rsrc
|
||||
mimeset -f $sourceDir/src/sqlitebrowser
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make $jobArgs install
|
||||
mkdir -p $appsDir
|
||||
cp $sourceDir/src/sqlitebrowser $appsDir/SQLiteBrowser
|
||||
addAppDeskbarSymlink $appsDir/SQLiteBrowser SQLiteBrowser
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user