summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cornwall2020-03-30 09:44:17 -0700
committerBrett Cornwall2020-03-30 09:44:17 -0700
commit49acc496f863eb9b7525390446e3e9f7a160a3e5 (patch)
tree238a6c7a19f14f26e2f69dd29d7addbe6eeec2c6
parentede3f442ac41a2b2a2accaca31ea58aa538eba69 (diff)
downloadaur-49acc496f863eb9b7525390446e3e9f7a160a3e5.tar.gz
upgpkg: 5.02; file bullshittery; add exec to gam
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD17
-rwxr-xr-xgam.sh2
3 files changed, 16 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b8aae4cdaa6..96a357efdc4 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,24 +1,25 @@
pkgbase = gam
pkgdesc = Command-line tool for Google GSuite admins to manage settings quickly and easily
- pkgver = 4.99
+ pkgver = 5.02
pkgrel = 1
url = https://github.com/jay0lee/GAM
arch = any
license = Apache
depends = python-dateutil
depends = python-dnspython
+ depends = python-google-api-core
depends = python-google-api-python-client
depends = python-google-auth
depends = python-google-auth-httplib2
depends = python-google-auth-oauthlib
depends = python-httplib2
depends = python-passlib
- source = gam-4.99.tar.gz::https://github.com/jay0lee/GAM/archive/v4.99.tar.gz
+ source = gam-5.02.tar.gz::https://github.com/jay0lee/GAM/archive/v5.02.tar.gz
source = xdg_config_dirs.patch
source = gam.sh
- sha256sums = 83b0877a6b9f54bed1483e03207e0af4f4b1b90533a7efd3d1a8201fc2bf2f81
+ sha256sums = e642603bfc36df0a9a6a02068b25a8d0ad6914667fa29ac018bc487e5d0a2171
sha256sums = 202e3566d837c37526174fb6311232c06d90e3786578668aa58ef3eb0648054a
- sha256sums = d93809852ef9eefeb99f3fc1b955305264f93f2552db14b4d9d6fe7c2b08345b
+ sha256sums = f8613546b8d4a51f05342d3680553c20a2e0995c3be90e469f1da3bb83ca172e
pkgname = gam
diff --git a/PKGBUILD b/PKGBUILD
index 0020c217f69..a0a5cb884fa 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Contributor: Ethan Schoonover
pkgname=gam
-pkgver=4.99
+pkgver=5.02
pkgrel=1
pkgdesc="Command-line tool for Google GSuite admins to manage settings quickly and easily"
arch=('any')
@@ -11,6 +11,7 @@ license=('Apache')
depends=(
'python-dateutil'
'python-dnspython'
+ 'python-google-api-core'
'python-google-api-python-client'
'python-google-auth'
'python-google-auth-httplib2'
@@ -25,9 +26,9 @@ source=(
"gam.sh"
)
-sha256sums=('83b0877a6b9f54bed1483e03207e0af4f4b1b90533a7efd3d1a8201fc2bf2f81'
+sha256sums=('e642603bfc36df0a9a6a02068b25a8d0ad6914667fa29ac018bc487e5d0a2171'
'202e3566d837c37526174fb6311232c06d90e3786578668aa58ef3eb0648054a'
- 'd93809852ef9eefeb99f3fc1b955305264f93f2552db14b4d9d6fe7c2b08345b')
+ 'f8613546b8d4a51f05342d3680553c20a2e0995c3be90e469f1da3bb83ca172e')
prepare() {
mv "GAM-$pkgver" "$pkgname-$pkgver"
@@ -36,19 +37,21 @@ prepare() {
}
package() {
+ # No setup-utils here yet. See https://github.com/jay0lee/GAM/issues/1140
install -m755 -d "$pkgdir/etc/$pkgname/"
touch "$pkgdir/etc/$pkgname/noupdatecheck.txt"
touch "$pkgdir/etc/$pkgname/nobrowser.txt"
- install -Dm755 "$pkgname-$pkgver/src/gam.py" -t "$pkgdir/usr/share/$pkgname/"
-
for file in controlflow display fileutils transport utils var; do
install -Dm644 "$pkgname-$pkgver/src/$file.py" \
-t "$pkgdir/usr/share/$pkgname/"
done
- install -Dm644 "$pkgname-$pkgver"/src/gapi/{__init__,errors}.py \
- -t "$pkgdir/usr/share/$pkgname/gapi"
+ cp -r "$pkgname-$pkgver"/src/{auth,gapi} "$pkgdir/usr/share/$pkgname"
+ find "$pkgdir/usr/share/$pkgname" -type f -exec chmod 644 {} +
+ find "$pkgdir/usr/share/$pkgname" -type d -exec chmod 755 {} +
+ find "$pkgdir/usr/share/$pkgname" -name '*_test.py' -exec rm {} +
+ install -Dm755 "$pkgname-$pkgver/src/gam.py" -t "$pkgdir/usr/share/$pkgname/"
install -Dm755 gam.sh "$pkgdir/usr/bin/gam"
}
diff --git a/gam.sh b/gam.sh
index 7d2a26ff0f7..18adb88b5cc 100755
--- a/gam.sh
+++ b/gam.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-/usr/share/gam/gam.py "$@"
+exec /usr/share/gam/gam.py "$@"