1 # Maintainer: Dan Serban
2 # Contributors: Dany Martineau, Jordi De Groof
5 pkgver=1.x.xx.xxx.latest
7 pkgdesc="Identify issues with your MP3 files, fix some of these issues and make other changes"
8 url=http://mp3diags.sourceforge.net/
11 depends=(boost-libs qt)
12 makedepends=(boost lynx)
13 optdepends=('mp3gain: MP3 normalization support')
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)
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