blob: 742d316e72bb316ab6e19e45aa27540885f6bb4d (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Ainola
# Contributor: Ethan Schoonover
pkgname=gam
pkgver=4.98
pkgrel=1
pkgdesc="Command-line tool for Google GSuite admins to manage settings quickly and easily"
arch=('any')
url="https://github.com/jay0lee/GAM"
license=('Apache')
depends=(
'python-dateutil'
'python-dnspython'
'python-google-api-python-client'
'python-google-auth'
'python-google-auth-httplib2'
'python-google-auth-oauthlib'
'python-httplib2'
'python-passlib'
)
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/jay0lee/GAM/archive/v${pkgver}.tar.gz"
"xdg_config_dirs.patch"
"gam.sh"
)
sha256sums=('eeb8f819df7dd31e9b97a86c693f95044703fe4b3fbcbaf40a8fc893d0805e10'
'202e3566d837c37526174fb6311232c06d90e3786578668aa58ef3eb0648054a'
'd93809852ef9eefeb99f3fc1b955305264f93f2552db14b4d9d6fe7c2b08345b')
prepare() {
mv "GAM-$pkgver" "$pkgname-$pkgver"
cd "$pkgname-$pkgver"
patch -p0 < ../xdg_config_dirs.patch
}
package() {
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"
install -Dm755 gam.sh "$pkgdir/usr/bin/gam"
}
|