summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD33
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..913cc9c2927
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = gdown
+ pkgdesc = Download a large file from Google Drive
+ pkgver = 3.6.4
+ pkgrel = 1
+ url = https://github.com/wkentaro/gdown
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ makedepends = git
+ depends = python
+ source = git+https://github.com/wkentaro/gdown.git#tag=v3.6.4
+ sha512sums = SKIP
+
+pkgname = gdown
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e6c71b3e990
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
+
+pkgname=gdown
+pkgver=3.6.4
+pkgrel=1
+pkgdesc="Download a large file from Google Drive"
+arch=('any')
+url="https://github.com/wkentaro/gdown"
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'git')
+source=(git+https://github.com/wkentaro/gdown.git#tag=v${pkgver})
+sha512sums=('SKIP')
+
+prepare() {
+ cd "${pkgname}"
+
+ git submodule update --init
+}
+
+build() {
+ cd "${pkgname}"
+
+ python setup.py build
+}
+
+package() {
+ cd "${pkgname}"
+
+ python setup.py install --prefix="/usr" --root="${pkgdir}" --optimize=1
+ install -Dm755 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"/LICENSE
+}
+# vim:set ts=2 sw=2 et: