summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHexchain Tong2015-06-19 16:52:51 +0800
committerHexchain Tong2015-06-19 16:52:51 +0800
commita88384b4ca27a159f2ea03baf7ad92b45ac79877 (patch)
treea71f2b9dff49e975ea15bb5baf8cec0081573746
downloadaur-a88384b4ca27a159f2ea03baf7ad92b45ac79877.tar.gz
Move from AUR
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD32
2 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ef504fe86bd
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = coursera-dl-git
+ pkgdesc = Script for downloading Coursera.org videos and naming them
+ pkgver = 524.57fd3db
+ pkgrel = 2
+ url = https://github.com/coursera-dl/coursera/
+ arch = any
+ license = GPL
+ makedepends = git
+ depends = python
+ depends = python-beautifulsoup4
+ depends = python-distribute
+ depends = python-requests
+ depends = python-six
+ optdepends = python-html5lib: recommended for parsing pages
+ source = git://github.com/coursera-dl/coursera.git
+ sha256sums = SKIP
+
+pkgname = coursera-dl-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a5fef0edad3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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=524.57fd3db
+pkgrel=2
+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.4/site-packages/$_gitname"
+ install -cm644 $_gitname/*.py "$pkgdir/usr/lib/python3.4/site-packages/$_gitname/"
+}
+
+# vim: set ts=2 sw=2 et: