updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / mp3diags / PKGBUILD
blob55740f5d8a6da3558cd637450ea67f8ad8003510
1 # Maintainer: Dan Serban
2 # Contributors: Dany Martineau, Jordi De Groof
4 pkgname=mp3diags
5 pkgver=1.x.xx.xxx.latest
6 pkgrel=1
7 pkgdesc="Identify issues with your MP3 files, fix some of these issues and make other changes"
8 url=http://mp3diags.sourceforge.net/
9 license=(GPL)
10 arch=(i686 x86_64)
11 depends=(boost-libs qt)
12 makedepends=(boost lynx)
13 optdepends=('mp3gain: MP3 normalization support')
15 build()
17   rm MP3Diags.tar.gz 2>/dev/null || true
18   _url=$(lynx -dump "http://sourceforge.net/projects/mp3diags/files/mp3diags-src/" | grep -o http.*MP3Diags-1.*tar.gz/download | head -1)
19   wget -O MP3Diags.tar.gz "${_url}"
20   bsdtar -xf MP3Diags.tar.gz
21   cd $(ls -1d MP3Diags-*/ | tail -1)
22   ./AdjustMt.sh
23   qmake
24   make
25   mkdir -p "${pkgdir}"/usr/bin "${pkgdir}"/usr/share/{applications,pixmaps}
26   install -D bin/MP3Diags "${pkgdir}"/usr/bin/MP3Diags
27   install -D desktop/MP3Diags.desktop "${pkgdir}"/usr/share/applications/MP3Diags.desktop
28   install -D desktop/MP3Diags48.png "${pkgdir}"/usr/share/pixmaps/MP3Diags.png