summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a17bbb983241525ddefd1cd6bb2aaf2f53ab251 (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
# Maintainer: Jan Trejbal <jan.trejbal@gmail.com>
pkgname=gnome-shell-extension-docker-integration-git
pkgver=20160321
pkgrel=2
pkgdesc="Base Docker&Docker compose integration (start, stop, log, up), hide Docker network (veth*)"
arch=('any')
url="https://github.com/Trejjam/Gnome-Docker-integration"
license=('GPL3')
depends=('gnome-shell>=3.18' 'networkmanager')
makedepends=('git')
provides=("docker-integration-applet")
#install=gschemas.install

_gitroot="git://github.com/Trejjam/Gnome-Docker-integration.git"
_gitname="gnome-docker-integration"

build() {
    cd ${srcdir}/
    msg "Connecting to the GIT server..."
    if [[ -d ${srcdir}/${_gitname} ]] ; then
	cd ${_gitname}
        git pull origin
        msg "The local files are updated..."
    else
        git clone ${_gitroot} ${_gitname}
    fi
    msg "GIT checkout done."
}

package() {
    cd "$srcdir/gnome-docker-integration"
    mkdir -p "$pkgdir/usr/share/gnome-shell/extensions/"
    cp -R "src" "$pkgdir/usr/share/gnome-shell/extensions/docker-integration@jan.trejbal.gmail.com"
}