diff options
author | Chocobo1 | 2018-01-09 02:21:52 +0800 |
---|---|---|
committer | Chocobo1 | 2018-01-09 02:29:00 +0800 |
commit | 209bccb7b843e8ff2c351976acb1f55246cf1c25 (patch) | |
tree | 576682e5e8ea63bc2334a835bb311b4c8ad1f156 | |
download | aur-209bccb7b843e8ff2c351976acb1f55246cf1c25.tar.gz |
newpkg: qbittorrent-nox-git 4.0.3.r372.g55b9b8fc9-1
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c6e1178f0888 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = qbittorrent-nox-git + pkgdesc = A bittorrent client programmed in C++ / Qt that uses libtorrent-rasterbar (w/o GUI) + pkgver = 4.0.3.r372.g55b9b8fc9 + pkgrel = 1 + url = https://www.qbittorrent.org/ + arch = i686 + arch = x86_64 + license = GPL + license = custom + makedepends = git + makedepends = boost + makedepends = qt5-tools + depends = glibc + depends = libtorrent-rasterbar + depends = qt5-base + provides = qbittorrent-nox + conflicts = qbittorrent-nox + source = git+https://github.com/qbittorrent/qBittorrent.git + sha256sums = SKIP + +pkgname = qbittorrent-nox-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9a318606c510 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=qbittorrent-nox-git +pkgver=4.0.3.r372.g55b9b8fc9 +pkgrel=1 +pkgdesc="A bittorrent client programmed in C++ / Qt that uses libtorrent-rasterbar (w/o GUI)" +arch=('i686' 'x86_64') +url="https://www.qbittorrent.org/" +license=('GPL' 'custom') +depends=('glibc' 'libtorrent-rasterbar' 'qt5-base') +makedepends=('git' 'boost' 'qt5-tools') +provides=('qbittorrent-nox') +conflicts=('qbittorrent-nox') +source=("git+https://github.com/qbittorrent/qBittorrent.git") +sha256sums=('SKIP') + + +pkgver() { + cd "qBittorrent" + + _tag=$(git tag -l --sort -v:refname | sed -n '1,1{s/release-//p}') + _rev=$(git rev-list --count release-$_tag..HEAD) + _hash=$(git rev-parse --short HEAD) + printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" +} + +build() { + cd "qBittorrent" + + ./bootstrap.sh + + mkdir -p "_build" && cd "_build" + ../configure --prefix="/usr" --disable-gui --enable-systemd + make +} + +package() { + cd "qBittorrent" + + make -C "_build" INSTALL_ROOT="$pkgdir" install + install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/qbittorrent-nox/COPYING" +} |