updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / easymp3gain-gtk2-bin / PKGBUILD
blobedcec2dc5b4db58e1924786af03529b5f4c90ba1
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-gtk2-bin
6 pkgver=0.5.0
7 pkgrel=6
8 pkgdesc="GTK2 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=('gtk2')
13 optdepends=('mp3gain: for MP3 support'
14             'vorbisgain: for OGG support'
15             'aacgain: for AAC suport')
16 provides=('easymp3gain')
17 conflicts=('easymp3gain-gtk2' 'easymp3gain-qt4' 'easymp3gain-qt4-bin')
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-gtk2_${pkgver}_${_arch}.tar.gz") || source=("http://sourceforge.net/projects/easymp3gain/files/easymp3gain%20i386/easymp3gain-${pkgver}/easymp3gain-gtk2_${pkgver}_${_arch}.tar.gz")
21 [ "$CARCH" = "x86_64" ] && md5sums=('0e1a42c4d376057849e385b8c2b9fa4f') || md5sums=('69b5a186022678955086134d06db74a6')
23 build() {
24         mkdir -p ${startdir}/pkg/usr/{share/{applications,doc/easymp3gain-gtk2,easymp3gain/{help,lang},icons/hicolor/},bin}
26         cd ${srcdir}/easymp3gain-gtk2_${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-gtk2/
35         cp easymp3gain ${pkgdir}/usr/share/easymp3gain/
36         ln -s /usr/share/easymp3gain/easymp3gain ${pkgdir}/usr/bin