diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bf456a3c8c83 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: WorMzy Tykashi <wormzy.tykashi@gmail.com> +# Contributer: fauno <fauno@kiwwwi.com.ar> +# Contributor: SanskritFritz + +pkgname=transmission-remote-cli-git +_gitname=${pkgname%-git} +pkgver=1.7.0.49.g62de9f0 +pkgrel=1 +pkgdesc="Curses interface for the daemon of the BitTorrent client Transmission" +arch=('any') +url="https://github.com/fagga/transmission-remote-cli" +license=('GPL3') +depends=('python2') +makedepends=('git') +conflicts=('transmission-remote-cli') +replaces=('transmission-remote-cli') +optdepends=('python2-geoip: Guess which country peers come from' + 'adns-python: Resolve IPs to host names') +source=("git+https://github.com/fagga/transmission-remote-cli.git") +md5sums=('SKIP') + +pkgver() { + cd "$_gitname" + git --no-pager describe --tags | sed -e 's:-:.:g' -e '1s:v::' +} + +prepare() { + cd "$_gitname" + sed -i "1s/python/python2/" transmission-remote-cli +} + +package() { + cd "$_gitname" + + install -D -m755 "transmission-remote-cli" "${pkgdir}/usr/bin/transmission-remote-cli" + install -D -m644 "transmission-remote-cli.1" "${pkgdir}/usr/share/man/man1/transmission-remote-cli.1" + install -D -m755 "completion/bash/transmission-remote-cli-bash-completion.sh" "${pkgdir}/etc/bash_completion.d/transmission-remote-cli-bash-completion.sh" +} |