summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c921b331eb3397d3dc5f14006197f133c41873bd (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
36
37
38
39
40
41
42
43
44
45
46
47
48
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Raphael Scholer <rascholer@gmail.com>
# Contributors: Dan Serban, Dany Martineau, RTFreedman, Harvey, Jordi De Groof, qqqqqqqqq9

pkgname=mp3diags
pkgver=1.5.03
pkgrel=1
pkgdesc='Find and fix problems in MP3 files. Includes a tagger'
arch=(x86_64)
url=https://mp3diags.sourceforge.net
license=(GPL2)
depends=(boost-libs qt5-base)
makedepends=(boost qt5-tools)
optdepends=('mp3gain: MP3 normalization support')
#source=("https://downloads.sourceforge.net/project/mp3diags/unstable/mp3diags-src/MP3Diags-unstable-$pkgver.tar.gz")
#sha256sums=('6dacea62988e7ffee79217cf404268ece22b3fee95474f021c22f854a9f3e8e6')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mciobanu/mp3diags/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('60fe732cb7b1c0a8f941650baf47613ea03fc5b90ff4d681cb9befd3aad16e68')

#prepare() {
#  sed -i 's|[-/]unstable||g' MP3Diags-unstable-$pkgver/desktop/MP3Diags-unstable.desktop
#}

build() {
  #cd MP3Diags-unstable-$pkgver
  cd $pkgname-$pkgver

  ./AdjustMt.sh
  qmake-qt5
  make
  lrelease src/translations/mp3diags_*.ts
}

package() {
  #cd MP3Diags-unstable-$pkgver
  cd $pkgname-$pkgver

  install -Dm755 bin/MP3Diags-unstable "$pkgdir/usr/bin/MP3Diags"
  #install -Dm644 desktop/MP3Diags-unstable.desktop "$pkgdir/usr/share/applications/MP3Diags.desktop"
  install -Dm644 desktop/MP3Diags.desktop "$pkgdir/usr/share/applications/MP3Diags.desktop"

  for i in 16 22 24 32 36 40 48; do
    install -Dm644 desktop/MP3Diags-unstable$i.png "$pkgdir/usr/share/icons/hicolor/${i}x$i/apps/MP3Diags.png"
  done

  install -Dm644 src/translations/*.qm -t "$pkgdir/usr/share/mp3diags/translations"
}