desktop/mp3diags/PKGBUILD

41 lines
1.4 KiB
Bash
Raw Normal View History

2011-03-29 19:19:49 +08:00
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# contributor Fabien Valthier <hcoohb[at]gmail[dog]com>
pkgname=mp3diags
pkgver=1.2.01
2014-06-10 15:18:16 +08:00
pkgrel=2
2011-03-29 19:19:49 +08:00
pkgdesc="GUI-based application that allows end-users to identify issues with their MP3 files, fix some of the issues and make other changes."
url="http://mp3diags.sourceforge.net/"
license=('GPL')
arch=('i686' 'x86_64')
depends=('qt' 'boost-libs')
makedepends=('boost')
2011-03-29 19:19:49 +08:00
optdepends=('mp3gain: MP3 normalization support')
categories=('multimedia')
2011-03-29 19:19:49 +08:00
install=mp3diags.install
source=("http://downloads.sourceforge.net/project/mp3diags/mp3diags-src/MP3Diags-${pkgver}.tar.gz")
md5sums=('1156d59f70e15bde1f6a80146b541057')
2011-03-29 19:19:49 +08:00
build() {
cd ${srcdir}/MP3Diags-$pkgver
msg 'Building main application...'
2011-10-01 09:46:42 +08:00
./AdjustMt.sh
2011-03-29 19:19:49 +08:00
qmake
make
msg 'Building translation...'
./MakeTranslations.sh
2011-10-01 09:46:42 +08:00
}
package() {
cd ${srcdir}/MP3Diags-$pkgver
2011-03-29 19:19:49 +08:00
install -D bin/MP3Diags ${pkgdir}/usr/bin/MP3Diags
install -D desktop/MP3Diags.desktop ${pkgdir}/usr/share/applications/MP3Diags.desktop
for i in "16" "22" "24" "32" "36" "40" "48"; do
mkdir -p "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps"
install -p -m644 "desktop/MP3Diags${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/MP3Diags.png"
done
install -Dm644 ${srcdir}/MP3Diags-$pkgver/src/translations/*.qm ${pkgdir}/usr/share/${pkgname}-${pkgver}/translations/
2011-03-29 19:19:49 +08:00
}