blob: c09d5d34fda62a87f085b9e874abcaffca500aec (
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
|
#Contributor: Diego Principe <cdprincipe@at@gmail@dot@com>
#Contributor: Martin Villagra <mvillagra0@gmail.com>
pkgname=qbittorrent-nogui-git
pkgver=.7653
pkgrel=1
pkgdesc="Bittorrent client based on libtorrent-rasterbar (without X support)"
arch=('i686' 'x86_64')
url="http://www.qbittorrent.org/"
license=('GPL')
depends=('libtorrent-rasterbar' 'qt5-base')
makedepends=('boost' 'qt5-tools')
conflicts=('qbittorrent-nogui')
source=("git://github.com/qbittorrent/qBittorrent.git"
"qbittorrent.service"
"qbittorrent@.service")
md5sums=('SKIP'
'98ac5dd1f2a5ab78ece106ac2df1ec1c'
'375b80818026e6cdd586fca37379b0ab')
pkgver() {
cd ${srcdir}/qBittorrent
echo $(cat ${srcdir}/qBittorrent/version.pri | grep -o '[0-9]..*[0-9]').$(git rev-list --count HEAD)
}
prepare() {
if [[ -d ${srcdir}/build ]]; then
msg "Cleaning the previous build directory..."
rm -rf ${srcdir}/build
fi
cp -r ${srcdir}/qBittorrent ${srcdir}/build
}
build() {
cd ${srcdir}/build
./configure --prefix=/usr --disable-gui
make
}
package() {
cd ${srcdir}/build
make INSTALL_ROOT=${pkgdir} install
install -Dm644 "$srcdir/qbittorrent.service" "$pkgdir/usr/lib/systemd/user/qbittorrent.service"
install -Dm644 "$srcdir/qbittorrent@.service" "$pkgdir/usr/lib/systemd/system/qbittorrent@.service"
}
|