aboutsummaryrefslogtreecommitdiffstats
path: root/community/imgbrd-grabber/APKBUILD
blob: 90f51f22c3213ade4aa2f8e4d9bafdd6fb5f3a3d (plain) (blame)
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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=imgbrd-grabber
pkgver=7.1.1
pkgrel=1
pkgdesc="Powerful imageboard/booru downloader"
options="!check" # Tests requires graphics
url="https://bionus.github.io/imgbrd-grabber"
arch="all !mips64 !mips64el !armhf" # mps64 and mips64el blocked by nodejs restrictions, armhf blocked by qt5-qtdeclarative
license="Apache-2.0"
makedepends="cmake nodejs qt5-qtdeclarative-dev qt5-qtmultimedia-dev
	qt5-qtbase-mysql qt5-qtbase-odbc qt5-qtbase-sqlite qt5-qtbase-tds
	qt5-qtscript-dev qt5-qtbase-dev qt5-qttools-dev npm"
source="$pkgname-$pkgver.tar.gz::https://github.com/Bionus/imgbrd-grabber/archive/v$pkgver.tar.gz"

build() {
	sed -i 's|USE_QSCINTILLA 1|USE_QSCINTILLA 0|' gui/CMakeLists.txt
	sed -i 's|USE_BREAKPAD 1|USE_BREAKPAD 0|' gui/CMakeLists.txt
	sed -i '/add_subdirectory(tests)/d' CMakeLists.txt

	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		$CMAKE_CROSSOPTS
	make
}

package() {
	make DESTDIR="$pkgdir" install
	touch "$pkgdir"/usr/share/Grabber/settings.ini
}

sha512sums="facbf6e24ca916273c1ec796ceb22abb67765a7c1c992ff37b426f512da5f7d6e40595c54b5240b8692e95892ecb999e76bdbd0e24c0e42ff346e6bbf722f7b2  imgbrd-grabber-7.1.1.tar.gz"