diff options
author | c0re | 2018-12-26 07:14:55 +0800 |
---|---|---|
committer | c0re | 2018-12-26 07:14:55 +0800 |
commit | 9fef070a2b1332c1c524633013aca06ff489ef72 (patch) | |
tree | 75062d4cb8ffcafc416655cce778281e3cf620d2 | |
download | aur-9fef070a2b1332c1c524633013aca06ff489ef72.tar.gz |
enh-git
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 65 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..5202cbe27eae --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = qbittorrent-enhanced-git + pkgdesc = A bittorrent client powered by C++, Qt5 and the good libtorrent library (Enhanced Edition) + pkgver = 4.1.5.1.r0.gdc3a45a60 + pkgrel = 1 + url = https://github.com/c0re100/qBittorrent-Enhanced-Edition + arch = i686 + arch = x86_64 + license = custom + license = GPL + makedepends = boost + makedepends = git + makedepends = qt5-tools + depends = libtorrent-rasterbar + depends = qt5-base + depends = qt5-svg + optdepends = python: needed for torrent search tab + provides = qbittorrent + conflicts = qbittorrent + source = qbittorrent-enhanced::git+https://github.com/c0re100/qBittorrent-Enhanced-Edition.git + sha256sums = SKIP + +pkgname = qbittorrent-enhanced-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..50ef0f2185e6 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: c0re100 <c0rehusky@gmail.com> - https://git.io/husky + +pkgname=qbittorrent-enhanced-git +pkgver=4.1.5.1.r0.gdc3a45a60 +pkgrel=1 +pkgdesc="A bittorrent client powered by C++, Qt5 and the good libtorrent library (Enhanced Edition)" +arch=('i686' 'x86_64') +url="https://github.com/c0re100/qBittorrent-Enhanced-Edition" +license=('custom' 'GPL') +depends=('libtorrent-rasterbar' 'qt5-base' 'qt5-svg') +makedepends=('boost' 'git' 'qt5-tools') +optdepends=('python: needed for torrent search tab') +conflicts=('qbittorrent') +provides=('qbittorrent') +source=("${pkgname%-*}::git+https://github.com/c0re100/qBittorrent-Enhanced-Edition.git") +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%-*} + + _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 ${pkgname%-*} + + # tell qmake not to break makepkg's debug/!strip options + export QBT_ADD_CONFIG='nostrip' + + ./configure --prefix=/usr + make +} + +package() { + cd ${pkgname%-*} + + make INSTALL_ROOT="$pkgdir/" install + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} |