summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aab6bb73fd55dd0a5249fc2a67baf440c5c05884 (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
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: sparse

pkgname=tremc-git
pkgver=0.9.3.r0.g546fd09
pkgrel=1
pkgdesc="Curses interface for Transmission. Python 3 fork of transmission-remote-cli"
arch=('any')
url="https://github.com/tremc/tremc"
license=('GPL3')
depends=('python')
makedepends=('git')
optdepends=('python-geoip: guess which country peers come from'
            'python-pyperclip: copy magnet links to the system clipboard (requires xclip)')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  install -Dm644 $pkgname/settings.cfg -t "$pkgdir/usr/share/${pkgname%-git}"
  make -C $pkgname PREFIX=/usr DESTDIR="$pkgdir" install
}