updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / ruby-vorbisfile / PKGBUILD
blob69df91a049c05db6b3687940c31d9bcfd9fbd3e8
1 # Maintainer: Henning Bekel <h dot bekel at googlemail dot com>
3 pkgname=ruby-vorbisfile  
4 pkgver=0.2
5 pkgrel=2
6 pkgdesc="Ruby bindings for libvorbisfile, the Ogg Vorbis decoding library"
7 url="http://raa.ruby-lang.org/project/ruby-vorbisfile/"
8 arch=('i686' 'x86_64')
9 license=('MIT')
10 depends=('ruby' 'libvorbis')
11 source=(http://rikkus.info/arch/ruby-vorbisfile-0.2.tar.gz $pkgname.license ruby-1.9.1.patch)
12 md5sums=('1772ca1c368c527b8809803fb4996b3e' '817ab0f505192773a8e7e972a45586b5'\
13          'f0ed56284071d2d6e59c93d6aa85f70f')
15 build() {
16   cd $srcdir/$pkgname-$pkgver
18   if [[ "$(ruby --version)" =~ ^ruby\ 1.9 ]]; then
19     patch -Np1 -i ../ruby-1.9.1.patch || return 1
20   fi
22   ./configure --prefix=/usr
23   make || return 1
24   make DESTDIR=$pkgdir install
25   
26   # MIT license copied from $srcdir/$pkgname-$pkversion/vorbisfile.c
27   install -d $pkgdir/usr/share/licenses/$pkgname
28   install -p -m 644 $srcdir/$pkgname.license $pkgdir/usr/share/licenses/$pkgname/COPYING