summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bdcb0a7617849f70307226436b9c50c6a05ece90 (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
49
50
51
52
53
54
55
56
57
58
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Nick Logozzo <nlogozzo225@gmail.com>
pkgname=tagger
_app_id=org.nickvision.tagger
pkgver=2024.6.0
pkgrel=2
pkgdesc="An easy-to-use music tag (metadata) editor"
arch=('x86_64' 'aarch64')
url="https://github.com/NickvisionApps/Tagger"
license=('GPL-3.0-or-later')
depends=(
  'chromaprint'
  'dotnet-runtime>=8'
  'ffmpeg'
  'libadwaita'
  'webp-pixbuf-loader'
)
makedepends=(
  'blueprint-compiler'
  'dotnet-sdk>=8'
  'git'
)
optdepends=(
  'yelp: in-app help'
)
conflicts=('nickvision-tagger')
source=("git+https://github.com/NickvisionApps/Tagger.git#tag=$pkgver-1"
        'git+https://github.com/NickvisionApps/CakeScripts.git')
sha256sums=('ee46f66fec96cf3f4d418ec8dad9b09fe81ab56daeaf3eb13423a8e417977c29'
            'SKIP')

prepare() {
  cd Tagger
  git submodule init
  git config submodule.CakeScripts.url "$srcdir/CakeScripts"
  git -c protocol.file.allow=always submodule update

  dotnet tool restore
}

build() {
  cd Tagger
  dotnet cake --target=Publish --prefix=/usr --ui=gnome
}

check() {
  cd Tagger
  appstreamcli validate --no-net \
    "_nickbuild/usr/share/metainfo/${_app_id}.metainfo.xml" || :
  desktop-file-validate "_nickbuild/usr/share/applications/${_app_id}.desktop"
}

package() {
  cd Tagger
  dotnet cake --target=Install --destdir="$pkgdir"

  ln -s "/usr/bin/${_app_id}" "$pkgdir/usr/bin/$pkgname"
}