updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / screenfetch-git / PKGBUILD
bloba5b385bfbe4ea72617a3330f8b8ff07a675c2781
1 # Maintainer: kittykatt <kittykatt@kittykatt.us>
2 pkgname=screenfetch-git
3 pkgver=2.3.7
4 pkgrel=1
5 pkgdesc="Bash screenshot info grabber (DE, WM, theme, uptime, ...) GIT Version"
6 arch=(any)
7 url="http://git.silverirc.com/cgit.cgi/screenfetch-dev.git/"
8 license=('GPL')
9 conflicts=('screenfetch')
10 depends=('bash' 'xorg-xdpyinfo')
11 optdepends=('scrot: To take screenshot')
12 makedepends=('git')
14 _gitroot="git://git.silverirc.com/screenfetch-dev.git"
15 _gitname="screenfetch-dev"
17 build() {
18         # Git
19         cd "$srcdir"
20         msg "Connecting to GIT server...."
22         if [ -d $_gitname ] ; then
23                 cd $_gitname && git pull origin
24                 msg "The local files are updated."
25         else
26                 git clone $_gitroot $_gitname
27         fi
29         msg "GIT checkout done or server timeout"
30         msg "Starting make..."
32         rm -rf "$srcdir/$_gitname-build"
33         git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34         cd "$srcdir/$_gitname-build"
36         # Create pkgdir folders
37         install -d $pkgdir/usr/bin
39         # Install
40         cp -r screenfetch-dev $pkgdir/usr/bin/screenfetch