updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / gam / PKGBUILD
blobdeb13f84e30bfbcd2259bd74771fbebe1236f34f
1 # Maintainer: Shanto
3 pkgname=gam
4 pkgver=1.9.1
5 pkgrel=1
6 holdver=$pkgver
7 pkgdesc="CLI frontend to Google Apps Provisioning API"
8 arch=('any')
9 url="http://code.google.com/p/google-apps-manager/"
10 license=('Apache')
11 depends=('python2')
12 makedepends=('unzip')
13 optdepends=()
14 provides=()
15 source=("http://google-apps-manager.googlecode.com/files/gam-${pkgver}-python-src.zip")
16 noextract=("gam-${pkgver}-python-src.zip")
17 md5sums=('b253122519ebf72b623c4e3fd227c25e')
19 build() {
20         cd $srcdir
21         unzip -qo "gam-${pkgver}-python-src.zip" -d build
24 package() {
25         cd "${srcdir}/build"
26         install -d ${pkgdir}/opt/${pkgname}
27         install -d ${pkgdir}/usr/bin
28         cp -af * ${pkgdir}/opt/${pkgname}/
29         echo "python2 /opt/${pkgname}/gam.py \"\$@\"" > ${pkgdir}/usr/bin/gam
30         chmod 0755 ${pkgdir}/usr/bin/gam
31         rm -rf ../build