summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 759bb9f30e13643a7f0088b717129588027b6422 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Harvey <harv|at|gmx.de>
# Contributors: Dan Serban, Dany Martineau, Jordi De Groof, RTFreedman

pkgname="mp3diags-unstable"
pkgver="1.5.03"
pkgrel=1
pkgdesc="Identify issues with your MP3 files, fix those issues and make other changes"
url="http://mp3diags.sourceforge.net/"
license=("GPL")
arch=("x86_64")
depends=("boost-libs" "qt5-base")
makedepends=("boost")
optdepends=('mp3gain: MP3 normalization support')
source=("http://sourceforge.net/projects/mp3diags/files/unstable/mp3diags-src/MP3Diags-unstable-${pkgver}.tar.gz")
sha256sums=('504791a38ddb79ef54e83ce0a76cd2d056e6b1349cbd8cc88e2414bfbd9aba0d')

build() {
	cd "${srcdir}/MP3Diags-unstable-${pkgver}"
	./AdjustMt.sh
	qmake-qt5
	make
        strip bin/MP3Diags-unstable
}

package() {
 	cd "${srcdir}/MP3Diags-unstable-${pkgver}"
	mkdir -p "${pkgdir}/usr/bin" "${pkgdir}/usr/share/applications"
	install -p -m755 "bin/MP3Diags-unstable" "${pkgdir}/usr/bin/"
	install -p -m644 "desktop/MP3Diags-unstable.desktop" "${pkgdir}/usr/share/applications/"
    
	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-unstable${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/MP3Diags-unstable.png"
	done
}