summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
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: