summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 902ce7a1463e8a758755ffaca15bac49bffc8744 (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=coursera
pkgver=823.45bdcac
pkgrel=1
pkgdesc="Script for downloading Coursera.org videos and naming them"
arch=('any')
url="https://github.com/coursera-dl/coursera/"
license=('GPL')
depends=('python' 'python-beautifulsoup4' 'python-distribute' 'python-requests' 'python-six')
optdepends=('python-html5lib: recommended for parsing pages')
makedepends=('git')
source=("git://github.com/coursera-dl/$_gitname.git")
sha256sums=('SKIP')

pkgver() {
  cd $_gitname
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
  cd $_gitname
  install -Dm755 ${pkgname%-*} "$pkgdir/usr/bin/${pkgname%-*}"
  install -dm755 $_gitname "$pkgdir/usr/lib/python3.5/site-packages/$_gitname"
  install -cm644 $_gitname/*.py "$pkgdir/usr/lib/python3.5/site-packages/$_gitname/"
}

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