updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / abx-comparator / PKGBUILD
blob7c6ae87546888f978a8f6509f2d63985654d5b5c
1 # Contributor: Benjamin Bukowski <crankidiot@gmail.com>
2 pkgname=abx-comparator
3 pkgver=0.2
4 pkgrel=2
5 pkgdesc="GStreamer-based blind audio comparison tool for GNOME"
6 arch=('i686' 'x86_64')
7 url="http://abx-comparator.berlios.de/"
8 license=('GPL')
9 depends=('pygtk>=2.8' 'python>=2.4' 'gstreamer0.10-python')
10 source=(abx-comparator.desktop http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.gz)
11 md5sums=('d38ac6b9a4561219390c55e9500726a2'
12          'c5e10bcbabed4d4dcc6eb15a0460d594')
14 build() {
15         cd "$srcdir/$pkgname-$pkgver"
16         
17         install -m755 -d $pkgdir/opt/abx-comparator
18         cp -r ./* $pkgdir/opt/abx-comparator/
20   msg "Fixing path"
21         sed -i -e 's|abx-comparator.|/opt/abx-comparator/abx-comparator.|g' $pkgdir/opt/abx-comparator/abx-comparator || return 1
23   msg "Fixing python2"
24   sed -i -e 's|/usr/bin/env python|/usr/bin/env python2|g' $pkgdir/opt/abx-comparator/abx-comparator || return 1
26         install -m755 -d $pkgdir/usr/bin
27         ln -s /opt/abx-comparator/abx-comparator $pkgdir/usr/bin/abx-comparator
29         install -m755 -D ../../abx-comparator.desktop $pkgdir/usr/share/applications/abx-comparator.desktop