summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ec435723ec8279f8ed8e1c66d54b79d77729449 (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
31
32
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: E Nikulenkov <enikulenkov -- gmail>
# Contributor: Jerome Leclanche <jerome.leclanche+arch@gmail.com>
# Contributor: Markus Unterwaditzer <markus@unterwaditzer.net>
# Maintainer: Hexchain Tong <i@hexchain.org>

pkgname=coursera-dl-git
_gitname=${pkgname/-git/}
pkgver=0.5.2.r0.g38f190a
pkgrel=1
pkgdesc="Script for downloading Coursera.org videos and naming them"
arch=('any')
url="https://github.com/coursera-dl/coursera-dl/"
license=('LGPL3')
depends=('python' 'python-pyasn1' 'python-html5lib' 'python-beautifulsoup4' 'python-distribute' 'python-requests' 'python-six')
makedepends=('git' 'pandoc')
provides=('coursera-dl')
conflicts=('coursera-dl')
source=("git://github.com/coursera-dl/$_gitname.git")
sha256sums=('SKIP')

pkgver() {
  cd $_gitname
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
  cd "$srcdir/$_gitname"
  python ./setup.py install -O1 --root="$pkgdir"
  install -Dm755 coursera-dl "$pkgdir/usr/bin/coursera-dl"
}

# vim: set ts=2 sw=2 et: