2011-03-29 19:19:49 +08:00
|
|
|
pkgname=mp3diags
|
2015-06-26 23:03:39 +08:00
|
|
|
pkgver=1.2.02
|
2016-03-16 03:36:44 +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."
|
2015-06-26 23:03:39 +08:00
|
|
|
url="http://sourceforge.net/projects/mp3diags/"
|
2011-03-29 19:19:49 +08:00
|
|
|
license=('GPL')
|
2015-06-26 23:03:39 +08:00
|
|
|
arch=('x86_64')
|
2014-05-21 02:01:57 +08:00
|
|
|
depends=('qt' 'boost-libs')
|
|
|
|
makedepends=('boost')
|
2011-03-29 19:19:49 +08:00
|
|
|
optdepends=('mp3gain: MP3 normalization support')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('multimedia')
|
2011-03-29 19:19:49 +08:00
|
|
|
install=mp3diags.install
|
2014-05-21 02:01:57 +08:00
|
|
|
source=("http://downloads.sourceforge.net/project/mp3diags/mp3diags-src/MP3Diags-${pkgver}.tar.gz")
|
2015-06-26 23:03:39 +08:00
|
|
|
sha512sums=('51498646ad3c9a19aeb0bcbf8cd280de75a24eb252790cc71d1eba433b986bbc58d4198d8bdfc0339dd6845ddfd966dd482f991b976e2da8f49e9d4e4f0464d0')
|
2011-03-29 19:19:49 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/MP3Diags-$pkgver
|
2014-05-21 02:01:57 +08:00
|
|
|
msg 'Building main application...'
|
2011-10-01 09:46:42 +08:00
|
|
|
./AdjustMt.sh
|
2014-06-10 16:54:05 +08:00
|
|
|
echo 'QMAKE_MOC = $$QMAKE_MOC -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION' >> src/src.pro
|
2011-03-29 19:19:49 +08:00
|
|
|
qmake
|
|
|
|
make
|
2014-05-21 02:01:57 +08:00
|
|
|
|
|
|
|
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
|
2014-05-21 02:01:57 +08:00
|
|
|
install -D desktop/MP3Diags.desktop ${pkgdir}/usr/share/applications/MP3Diags.desktop
|
|
|
|
for i in "16" "22" "24" "32" "36" "40" "48"; do
|
2015-06-26 23:03:39 +08:00
|
|
|
install -d "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps"
|
2014-05-21 02:01:57 +08:00
|
|
|
install -p -m644 "desktop/MP3Diags${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/MP3Diags.png"
|
|
|
|
done
|
2015-06-26 23:03:39 +08:00
|
|
|
install -D ${srcdir}/MP3Diags-$pkgver/src/images/logo.svg ${pkgdir}/usr/share/pixmaps/MP3Diags.svg
|
|
|
|
install -d ${pkgdir}/usr/share/${pkgname}/translations/
|
|
|
|
install -Dm644 ${srcdir}/MP3Diags-$pkgver/src/translations/*.qm ${pkgdir}/usr/share/${pkgname}/translations/
|
2011-03-29 19:19:49 +08:00
|
|
|
}
|