mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
43 lines
1.6 KiB
Bash
43 lines
1.6 KiB
Bash
# 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
|
|
pkgrel=2
|
|
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')
|
|
optdepends=('mp3gain: MP3 normalization support')
|
|
categories=('multimedia')
|
|
install=mp3diags.install
|
|
source=("http://downloads.sourceforge.net/project/mp3diags/mp3diags-src/MP3Diags-${pkgver}.tar.gz")
|
|
md5sums=('1156d59f70e15bde1f6a80146b541057')
|
|
|
|
build() {
|
|
cd ${srcdir}/MP3Diags-$pkgver
|
|
msg 'Building main application...'
|
|
./AdjustMt.sh
|
|
echo 'QMAKE_MOC = $$QMAKE_MOC -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION' >> src/src.pro
|
|
qmake
|
|
make
|
|
|
|
msg 'Building translation...'
|
|
./MakeTranslations.sh
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/MP3Diags-$pkgver
|
|
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
|
|
mkdir -p ${pkgdir}/usr/share/${pkgname}-${pkgver}/translations/
|
|
install -Dm644 ${srcdir}/MP3Diags-$pkgver/src/translations/*.qm ${pkgdir}/usr/share/${pkgname}-${pkgver}/translations/
|
|
}
|