diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-04-28 22:05:23 -0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-05-05 06:24:32 +0000 |
commit | ca693d3ce43dd12d7d109a6fed222d0013442d99 (patch) | |
tree | 876ef0ad90dcda45371946b9dfdba25b9f421b24 /testing/imgbrd-grabber | |
parent | 221638333c7322a9bf4b1733e9d3a21217f856a1 (diff) | |
download | aports-ca693d3ce43dd12d7d109a6fed222d0013442d99.tar.bz2 aports-ca693d3ce43dd12d7d109a6fed222d0013442d99.tar.xz |
testing/imgbrd-grabber: new aport
https://bionus.github.io/imgbrd-grabber
Powerful imageboard/booru downloader
Diffstat (limited to 'testing/imgbrd-grabber')
-rw-r--r-- | testing/imgbrd-grabber/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/imgbrd-grabber/APKBUILD b/testing/imgbrd-grabber/APKBUILD new file mode 100644 index 0000000000..ae4681621f --- /dev/null +++ b/testing/imgbrd-grabber/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=imgbrd-grabber +pkgver=7.1.0 +pkgrel=0 +pkgdesc="Powerful imageboard/booru downloader" +options="!check" # Tests requires graphics +url="https://bionus.github.io/imgbrd-grabber" +arch="all !mips64 !mips64el" # nodejs restrictions +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=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} + make +} + +package() { + make DESTDIR="$pkgdir" install + touch "$pkgdir"/usr/share/Grabber/settings.ini +} + +sha512sums="d6e2fe9a92ad640fb0843ce8a7aa94fd6e9bc507572c053d6ce948f179e2d0dacdb1bfeefece6f649ffcbe52fa59f985b65ba6c9c6d13c78b607783ade8ccfce imgbrd-grabber-7.1.0.tar.gz" |