1 # Maintainer: Henning Bekel <h dot bekel at googlemail dot com>
3 pkgname=ruby-vorbisfile
6 pkgdesc="Ruby bindings for libvorbisfile, the Ogg Vorbis decoding library"
7 url="http://raa.ruby-lang.org/project/ruby-vorbisfile/"
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')
16 cd $srcdir/$pkgname-$pkgver
18 if [[ "$(ruby --version)" =~ ^ruby\ 1.9 ]]; then
19 patch -Np1 -i ../ruby-1.9.1.patch || return 1
22 ./configure --prefix=/usr
24 make DESTDIR=$pkgdir install
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