summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 930de6c14dbaaf8242116a26264083e2c7f310a4 (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
59
60
61
62
63
64
65
66
# Maintainer: Rafael Dominiquini <rafaeldominiquini at gmail dot com>

_pkgauthor=Martchus
_pkgname=tageditor
pkgname=${_pkgname}-bin
pkgver=3.9.9
_pkgvername=v${pkgver}
pkgrel=1
pkgdesc="A tag editor with Qt GUI and command-line interface supporting MP4/M4A/AAC (iTunes), ID3, Vorbis, Opus, FLAC and Matroska"
arch=('x86_64')
_barch=('x86_64')
url="https://github.com/${_pkgauthor}/${_pkgname}"
_urlraw="https://raw.githubusercontent.com/${_pkgauthor}/${_pkgname}/${_pkgvername}"
license=('GPL-2.0-or-later')

provides=("${_pkgname}")
conflicts=("${_pkgname}")
depends=('libglvnd' 'hicolor-icon-theme' 'libx11' 'glibc')

source=("LICENSE-${pkgver}::${_urlraw}/LICENSE"
        "README-${pkgver}.md::${_urlraw}/README.md"
        "ICON-${pkgver}.svg::${_urlraw}/resources/icons/hicolor/scalable/apps/tageditor.svg")
source_x86_64=("${_pkgname}-${arch[0]}-${pkgver}.tar.gz::${url}/releases/download/${_pkgvername}/${_pkgname}-${pkgver}-${_barch[0]}-pc-linux-gnu.tar.xz")
sha256sums=('c03cea027b4b40e4402fabd08557736727ec3d5bc54ad64ab6472de432198cad'
            '360e26199123be22e199bab00ad1cda3bea3dddf8a1b8d96df4df55ef396d90d'
            'd12704a39f79dcaaf7f14ac158542b2e5e2d37ec53a4cbd5d5a5f292a8e4228e')
sha256sums_x86_64=('0cdfe2c5fe393e7940148c4f2d742fcc2995574e995a2afcd5f0560d867a7678')


prepare() {
	echo """[Desktop Entry]
Name=Tag Editor
GenericName=Tag Editor
Comment=A tageditor with Qt GUI and command line interface. Supports MP4 (iTunes), ID3, Vorbis, Opus, FLAC and Matroska
Exec=tageditor
Icon=tageditor
Terminal=false
Type=Application
Categories=AudioVideo;Database""" > tageditor.desktop

	echo """[Desktop Entry]
Name=Renaming Utility (Tag Editor)
GenericName=Renaming Utility (Tag Editor)
Comment=Tool to rename files using its tag information
Exec=tageditor qt-gui --renaming-utility
Icon=tageditor
Terminal=false
Type=Application
Categories=AudioVideo;Database""" > tageditor-renamingutility.desktop
}

package() {
	cd "${srcdir}/" || exit

	install -Dm755 "${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}"

	install -Dm644 "ICON-${pkgver}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${_pkgname}.svg"

	for app in *.desktop; do
		install -Dm644 "${app}" "${pkgdir}/usr/share/applications/${app}"
	done

	install -Dm644 "README-${pkgver}.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"

	install -Dm644 "LICENSE-${pkgver}" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}