blob: 86a16ba49c6a802eaa87b8abe24ca3b1960df586 (
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
43
44
45
46
47
48
49
50
51
52
53
|
# Maintainer: Flat <flat@imo.uto.moe>
pkgname=imgbrd-grabber-git
pkgver=v7.2.1.r154.eb96e1ef
pkgrel=1
pkgdesc="Very customizable imageboard/booru downloader with powerful filenaming features."
arch=('i686' 'x86_64')
url="https://github.com/Bionus/imgbrd-grabber"
license=('Apache')
depends=('qt5-multimedia' 'qt5-declarative' 'nodejs')
makedepends=('git' 'cmake' 'qt5-tools' 'npm')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/Bionus/imgbrd-grabber.git#branch=develop'
'git+https://github.com/LaurentGomila/qt-android-cmake.git'
'git+https://github.com/sakra/cotire.git'
'git+https://github.com/catchorg/Catch2.git')
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
git submodule init
git config submodule.qt-android-cmake.url "$srcdir/qt-android-cmake"
git config submodule.qt-android-cmake.path "$srcdir/${pkgname%-git}/cmake/qt-android-cmake"
git config submodule.cotire.url "$srcdir/cotire"
git config submodule.cotire.path "$srcdir/${pkgname%-git}/cmake/cotire"
git config submodule.Catch2.url $srcdir/Catch2
git config submodule.Catch2.path "$srcdir/${pkgname%-git}/tests/src/vendor/catch"
git submodule update
}
build() {
mkdir -p "$srcdir/build"
cd "$srcdir/build"
cmake -DCMAKE_INSTALL_PREFIX=/usr \
"$srcdir/${pkgname%-git}"
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir/" install
touch "$pkgdir/usr/share/Grabber/settings.ini"
}
|