summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f65c374a2d51dab03849e76549ba8043c3f8cad2 (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
29
30
# Maintainer: Marco Rubin <marco.rubin@protonmail.com>
# Contributor: Florian Bruhin <archlinux.org@the-compiler.org>
# Contributor: Roman G <drakosha@au.ru>

pkgname=torrentinfo
pkgver=1.8.7
pkgrel=2
pkgdesc="Bittorrent .torrent file parser and summariser"
arch=('any')
url="https://github.com/Fuuzetsu/torrentinfo"
license=(GPL2)
depends=(python)
makedepends=(git python-setuptools)
source=("git+$url#commit=3c9b3ba80c867ba28e8ce0982fec8ea5369df8ef")
b2sums=('SKIP')

prepare() {
    cd $pkgname
    sed -i "s/os.name is/os.name ==/g" setup.py # fix warning
}

build() {
    cd $pkgname
    python setup.py build
}

package() {
    cd $pkgname
    python setup.py install --root="$pkgdir/" --optimize=1
}