summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b9a874daa4a7b0a12b5c8b2e26c126390ee70cdd (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
# Maintainer: Vladislav Tyulbashev <vladislav.tyulbashev@yandex.ru>

pkgname=qlivebittorrent-git
pkgver=20161025
pkgrel=1
pkgdesc="Simple console bittorrent client"
arch=('i686' 'x86_64')
url="https://github.com/vtyulb/QLiveBittorrent"
license=('GPL')
depends=('qt5-base' 'boost-libs' 'libtorrent-rasterbar' 'ncurses')
makedepends=('wget' 'unzip' 'fuse' 'geoip' 'libtorrent-rasterbar' 'qt5-base' 'boost')

build() {
  cd ${srcdir}
  rm -fv master.zip
  wget https://github.com/vtyulb/QLiveBittorrent/archive/master.zip
  rm -rfv QLiveBittorrent-master
  unzip master.zip
  cd QLiveBittorrent-master/src/
  gcc -g `pkg-config fuse --cflags --libs` driver.c -o qlivebittorrent-driver
  echo "Disabling portable version"
  cat QLiveBittorrent.pro | grep -v PORTABLE > tmp
  mv tmp QLiveBittorrent.pro
  qmake-qt5 -makefile
  make
}

package() {
  cd ${srcdir}/QLiveBittorrent-master/src/
  mkdir -p $pkgdir/usr/bin
  cp -f QLiveBittorrent $pkgdir/usr/bin/qlivebittorrent
  cp -f qlivebittorrent-driver $pkgdir/usr/bin/qlivebittorrent-driver 
}