blob: cbb3450a40d1905e54e72f99bf18b60ff6124c8b (
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
|
# Maintainer: Jean Lucas <jean@4ray.co>
pkgname=lynda-dl-git
pkgver=0.3+r11+gbfa3fbe
pkgrel=1
pkgdesc='Tool to download courses from Lynda (git)'
arch=(any)
url=https://github.com/r0oth3x49/lynda-dl
license=(MIT)
depends=(python-requests
python-six
python-colorama
python-unidecode
python-pyopenssl)
makedepends=(git)
provides=(lynda-dl)
conflicts=(lynda-dl)
source=(git+$url)
sha512sums=('SKIP')
pkgver() {
cd lynda-dl
git describe --tags | sed 's#v##;s#-#+#g;s#+#+r#'
}
package() {
cd lynda-dl
# Move main script so everything installs to site-packages
mv lynda-dl.py lynda/lynda_dl.py
python setup.py install --root="$pkgdir" --optimize=1
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/lynda-dl
}
|