blob: c74c9e14b359dedc445c8453a814c7b4f2905e69 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Maintainer:
# Contributor: Peter Mattern <pmattern at arcor dot de>
_pkgname='fatrat'
pkgname="$_pkgname-git"
pkgver=1.2.0.b2.r60.g1b0dd1f6
pkgrel=1
pkgdesc='Qt download and upload manager'
url="https://github.com/LubosD/fatrat"
license=('GPL-3.0-only')
arch=('i686' 'x86_64')
depends=(
'libtorrent-rasterbar'
'qt5-svg'
'qt5-tools'
'qt5-webengine'
# 'poco' # for webui
)
optdepends=(
'desktop-file-utils: add application to MIME database'
)
makedepends=(
'boost'
'cmake'
'git'
'ninja'
)
provides=("$_pkgname=${pkgver%%.r*}")
conflicts=("$_pkgname")
_branch='develop'
_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git#branch=$_branch")
sha256sums=("SKIP")
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=8 | sed 's/_/./; s/beta/b/; s/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-GNinja
-DCMAKE_INSTALL_PREFIX='/usr'
-DWITH_BITTORRENT=ON
#-DWITH_JABBER=ON
-DWITH_NLS=ON
-DWITH_DOCUMENTATION=ON
-DWITH_WEBINTERFACE=OFF
-DWITH_CURL=ON
#-DWITH_JPLUGINS=ON
-Wno-dev
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|