summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8bb6713d79e34060011aa574ac12d4dee9e07246 (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
# Maintainer:  Polichronucci <nick at discloud dot eu>

pkgname=magnet2torrent-git
_pkgname=magnet2torrent
pkgver=0.r60.8edd5c2
pkgrel=1
pkgdesc='A command line tool that converts magnet links in to .torrent files.'
arch=('any')
url='https://github.com/LordAro/Magnet2Torrent'
license=('GPL3')
depends=('python' 'libtorrent-rasterbar>=1.1')
makedepends=('git')
source=("${pkgname}"::'git://github.com/LordAro/Magnet2Torrent.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/${pkgname}"
  printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$pkgname"

  install -D Magnet2Torrent.py ${pkgdir}/usr/bin/$_pkgname
  install -m644 -D "README.md" "${pkgdir}/usr/share/doc/${_pkgname}/readme.txt"
}