updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / gyazo-git / PKGBUILD
blob36a639a128763daf187eff557bf2a49155078c79
1 # Maintainer: Esa Lakaniemi <esalaka@gmail.com>
2 pkgname=gyazo-git
3 pkgver=20110826
4 pkgrel=1
5 pkgdesc=""
6 arch=('any')
7 url="http://gyazo.com"
8 license=('unknown')
9 groups=()
10 depends=('ruby')
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 noextract=()
20 _gitroot="https://github.com/gyazo/Gyazo-for-Linux.git"
21 _gitname="gyazo"
23 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot $_gitname
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   #
42   # BUILD HERE
43   #
47 package() {
48   cd "$srcdir/$_gitname-build"
49   mkdir -p "$pkgdir/usr/bin"
50   cp "gyazo" "$pkgdir/usr/bin/"
51