updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / shoes-git / PKGBUILD
blobc3281fc12f8a6de1d2007c18bc16fb41c2400256
1 # Original contributor: Michael Fellinger <m.fellinger@gmail.com>
2 # Updated by:
3 # Tapio Saarinen <admin@bitlong.org>
4 # Steve Klabnik <steve@steveklabnik.com>
5 # Michael Fellinger <m.fellinger@gmail.com>
7 pkgname=shoes-git
8 pkgver=20111003
9 pkgrel=1
10 pkgdesc="The best little GUI toolkit, for Ruby."
11 url="http://shoesrb.com/"
12 arch=(i686 x86_64)
13 license="MIT"
14 depends=('ruby' 'giflib' 'gtk2' 'curl' 'portaudio')
15 makedepends=('git')
16 conflicts=('shoes')
17 replaces=('shoes')
18 provides=('shoes')
19 backup=()
20 install=
21 source=()
22 md5sums=()
24 _pkgname=shoes
25 _gitrepo="git://github.com/shoes/shoes.git"
27 build() {
28   cd $srcdir
30   msg "Getting source..."
31   if [ -d $_pkgname ]; then
32     cd $_pkgname
33     git pull || return 1
34   else
35     git clone $_gitrepo $_pkgname || return 1
36     cd $_pkgname
37   fi
39   rake
40   cd dist
42   mkdir -p $pkgdir/usr/{bin,lib/shoes}
43   cp -r * $pkgdir/usr/lib/shoes/
45   ln -s /usr/lib/shoes/shoes $pkgdir/usr/bin/shoes
46   install -D -m644 $srcdir/$_pkgname/COPYING $pkgdir/usr/share/licenses/$_pkgname/LICENSE