aboutsummaryrefslogtreecommitdiffstats
path: root/community/sqlitebrowser/APKBUILD
blob: d2c85996597cf48c92e742b2e77575bfd43f7564 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Díaz Urbaneja Diego <sodomon2@gmail.com>
# Maintainer: Díaz Urbaneja Diego <sodomon2@gmail.com>
pkgname=sqlitebrowser
pkgver=3.12.2
pkgrel=3
pkgdesc="GUI editor for sqlite databases"
url="https://sqlitebrowser.org/"
arch="all"
license="GPL-3.0-only"
makedepends="
	cmake
	qscintilla-dev
	qt5-qtbase-dev
	qt5-qttools-dev
	samurai
	sqlite-dev
	"
source="$pkgname-$pkgver.tar.gz::https://github.com/sqlitebrowser/sqlitebrowser/archive/v$pkgver.tar.gz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DENABLE_TESTING=OFF \
		$CMAKE_CROSSOPTS
	cmake --build build
}

check() {
	ctest --output-on-failure --test-dir build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
a6afc0a4286f07adb7038f3a010c93e14204b477bde27b1599c9bfe3390422d3edfaa2a9381b1f13e63a7aaf90e931ee85358eb8b2c15b6ea55818d29c59395f  sqlitebrowser-3.12.2.tar.gz
"