updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / easymp3gain-qt4-bin / PKGBUILD
blob9e3767dde5cd0b16268612dadcf06d053b2cb777
1 # Maintainer: Jordi De Groof <jordi(dot)degroof(at)gmail(dot)com>
2 # Contributor: radu242 <rbutoi(at)gmail(dot)com>
3 # Contributor: Rogof <fake.bios(at)gmail(dot)com>
5 pkgname=easymp3gain-qt4-bin
6 pkgver=0.5.0
7 pkgrel=3
8 pkgdesc="Qt Graphical User Interface (GUI) for MP3Gain, VorbisGain and AACGain (binary package)"
9 arch=('i686' 'x86_64')
10 url="http://easymp3gain.sourceforge.net/"
11 license=('GPL')
12 depends=('qt' 'qt4pas')
13 optdepends=('mp3gain: for MP3 support'
14             'vorbisgain: for OGG support'
15             'aacgain: for AAC suport')
16 provides=('easymp3gain')
17 conflicts=('easymp3gain-gtk2' 'easymp3gain-gtk2-bin' 'easymp3gain-qt4')
18 install=('easymp3gain.install')
19 [ "$CARCH" = "x86_64" ] && _arch='amd64' || _arch='i386'
20 [ "$CARCH" = "x86_64" ] && source=("http://sourceforge.net/projects/easymp3gain/files/easymp3gain%20x86_64/easymp3gain-${pkgver}/easymp3gain-qt4_${pkgver}_${_arch}.tar.gz") || source=("http://sourceforge.net/projects/easymp3gain/files/easymp3gain%20i386/easymp3gain-${pkgver}/easymp3gain-qt4_${pkgver}_${_arch}.tar.gz")
21 [ "$CARCH" = "x86_64" ] && md5sums=('d6b116162d3baa009f963dc82be1b86f') || md5sums=('834140bc4858c1cd914eb9324a516e4d')
23 build() {
24         mkdir -p ${startdir}/pkg/usr/{share/{applications,doc/easymp3gain-qt4,easymp3gain/{help,lang},icons/hicolor/},bin}
26         cd ${srcdir}/easymp3gain-qt4_${pkgver}-1_${_arch}/
28         cp -r {help,lang} ${pkgdir}/usr/share/easymp3gain
29         for i in 16 22 24 32 48 64 128 192; do
30                 mkdir -p ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/
31                 cp icons/easymp3gain-${i}.png ${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/easymp3gain.png
32         done
33         cp -r applications ${pkgdir}/usr/share
34         cp {AUTHORS,CHANGELOG.txt,README.txt,RELEASE.txt} ${pkgdir}/usr/share/doc/easymp3gain-qt4/
35         cp easymp3gain ${pkgdir}/usr/share/easymp3gain/
36         ln -s /usr/share/easymp3gain/easymp3gain ${pkgdir}/usr/bin