summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAinola2018-09-09 14:09:49 -0600
committerAinola2018-09-09 14:09:49 -0600
commit18b4b385c0e13c1c419af589e3e9ba88d8ace439 (patch)
tree9e11160e5c07b57acb0d4a4995dd3594ef90f123
parent6804ab90af99a4bbc2e914632a431f6f9f74a10e (diff)
downloadaur-18b4b385c0e13c1c419af589e3e9ba88d8ace439.tar.gz
PKGBUILD improvements
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD20
2 files changed, 16 insertions, 14 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3688e06074a..6e5759c2f16 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,22 @@
# Generated by mksrcinfo v8
-# Thu Aug 30 15:23:31 UTC 2018
+# Sun Sep 9 20:09:41 UTC 2018
pkgbase = gam
- pkgdesc = Command line tool for Google G Suite Administrators to manage domain and user settings quickly and easily.
+ pkgdesc = Command-line tool for Google GSuite admins to manage settings quickly and easily.
pkgver = 4.61
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/jay0lee/GAM
arch = any
license = Apache
depends = python2
depends = python2-google-api-python-client
- depends = python2-google-auth-httplib2-git
+ depends = python2-google-auth-httplib2
depends = python2-httplib2
depends = python2-simplejson
depends = python2-gdata
depends = python2-google-auth
depends = python2-passlib
depends = perl-mozilla-ca
- source = https://github.com/jay0lee/GAM/archive/v4.61.tar.gz
+ source = gam-4.61.tar.gz::https://github.com/jay0lee/GAM/archive/v4.61.tar.gz
source = xdg_config_dirs.patch
source = gam.sh
sha256sums = de0d09a806ae80a690fd63d709681c31d851d21a80505b40ce798e1835ada4d2
diff --git a/PKGBUILD b/PKGBUILD
index 247bb96a509..4a38223646f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,15 +3,15 @@
pkgname=gam
pkgver=4.61
-pkgrel=1
-pkgdesc="Command line tool for Google G Suite Administrators to manage domain and user settings quickly and easily."
+pkgrel=2
+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=(
'python2'
'python2-google-api-python-client'
- 'python2-google-auth-httplib2-git'
+ 'python2-google-auth-httplib2'
'python2-httplib2'
'python2-simplejson'
'python2-gdata'
@@ -19,17 +19,20 @@ depends=(
'python2-passlib'
'perl-mozilla-ca'
)
+
source=(
- "https://github.com/jay0lee/GAM/archive/v${pkgver}.tar.gz"
+ "$pkgname-$pkgver.tar.gz::https://github.com/jay0lee/GAM/archive/v${pkgver}.tar.gz"
"xdg_config_dirs.patch"
"gam.sh"
)
+
sha256sums=('de0d09a806ae80a690fd63d709681c31d851d21a80505b40ce798e1835ada4d2'
'2879cbdcde779fa9cc6bafeadf657369377e5c317e9564c5e144c29ba9daa383'
'd93809852ef9eefeb99f3fc1b955305264f93f2552db14b4d9d6fe7c2b08345b')
prepare() {
- cd "$srcdir/GAM-$pkgver"
+ mv "GAM-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
patch -p0 < ../xdg_config_dirs.patch
}
@@ -38,10 +41,9 @@ package() {
install -m755 -d "$pkgdir/usr/share/$pkgname"
touch "$pkgdir/etc/$pkgname/noupdatecheck.txt"
touch "$pkgdir/etc/$pkgname/nobrowser.txt"
- install -Dm755 "$srcdir/GAM-$pkgver/src/gam.py" "$pkgdir/usr/share/$pkgname/gam.py"
- install -Dm644 "$srcdir/GAM-$pkgver/src/var.py" "$pkgdir/usr/share/$pkgname/var.py"
- install -Dm644 "$srcdir/GAM-$pkgver/src/utils.py" "$pkgdir/usr/share/$pkgname/utils.py"
- install -Dm755 "$srcdir/gam.sh" "$pkgdir/usr/bin/gam"
+ install -Dm755 "$pkgname-$pkgver/src/gam.py" -t "$pkgdir/usr/share/$pkgname/"
+ install -Dm644 "$pkgname-$pkgver"/src/{var,utils}.py -t "$pkgdir/usr/share/$pkgname/"
+ install -Dm755 gam.sh "$pkgdir/usr/bin/gam"
ln -s /usr/share/perl5/vendor_perl/Mozilla/CA/cacert.pem \
"$pkgdir/usr/share/$pkgname/cacert.pem"