updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / diskmoose-git / PKGBUILD
blob19b992afea8286f0bdfa6669f51c66e9907dfb53
1 # Maintainer: Alexander Rødseth <rodseth@gmail.com>
2 pkgname=diskmoose-git
3 pkgver=20111214
4 pkgrel=1
5 pkgdesc="Console application for warning when you are running out of disk space"
6 arch=('x86_64' 'i686')
7 url="https://github.com/xyproto/diskmoose"
8 license=('GPL2')
9 depends=('cowsay')
10 makedepends=('go')
11 provides=('diskmoose')
12 conflicts=('diskmoose')
13 _gitroot="git://github.com/xyproto/diskmoose.git"
14 _gitname="diskmoose"
16 build() {
17   cd "$srcdir"
19   msg "Connecting to the $_gitname git repository..."
20   if [ -d "$srcdir/$_gitname" ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
27   msg "GIT checkout done or server timeout"
28   cd "$srcdir"
29   rm -rf $_gitname-build
30   git clone $_gitname $_gitname-build
31   cd "$_gitname-build"
33   make
36 package() {
37   cd "$_gitname-build"
39   install -Dm755 diskmoose "$pkgdir/usr/bin/diskmoose"
40   install -Dm 644 COPYING \
41     "$pkgdir/usr/share/licenses/$pkgname/COPYING"
44 # vim:set ts=2 sw=2 et: