blob: bfb3b3521ef152a6354ade57d38b69b892c21f79 (
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
33
34
35
36
37
38
39
40
41
|
# 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.11.5.r11.g10ba6b8
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-setuptools' 'python-requests' 'python-six' 'python-configargparse')
makedepends=('git' 'pandoc')
provides=('coursera-dl')
conflicts=('coursera-dl')
source=("git+https://github.com/coursera-dl/$_gitname.git")
sha256sums=('SKIP')
prepare() {
export LC_CTYPE="en_US.UTF-8"
cd "$_gitname"
# https://github.com/coursera-dl/coursera-dl/pull/789
git show c8796e567698be166cb15f54e095140c1a9b567e | git apply -
}
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:
|