summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d7e35b22e5e4d8ab38369e97c08a0ee66ddbed6 (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
# Maintainer: weilinfox <weilinfox at inuyasha dot love>

pkgname=thtagger
pkgver=0.0.3
pkgrel=1
pkgdesc='一个简单的,基于 Python3 、 PySide6 和 Mutagen 的音乐元数据编辑器'
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url='https://github.com/weilinfox/haku-thtagger'
license=('GPL2')
depends=('hicolor-icon-theme'
         'pyside6'
         'python-mutagen'
         'python-requests')
makedepends=('python-setuptools')
install="$pkgname.install"
source=("https://github.com/weilinfox/haku-thtagger/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('7cf50de0b2620d69902ab9022aca6852d3bae11459d4a15b638e6e5335213f70')

build() {
	cd "$srcdir/haku-thtagger-$pkgver"
	python setup.py build
}

package() {

	cd "$srcdir/haku-thtagger-$pkgver"
	python setup.py install --skip-build --root=$pkgdir --optimize=1

	install -Dm644 $pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
	install -Dm644 img/$pkgname.xpm "$pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.xpm"
	install -Dm755 thtagger.sh "$pkgdir/usr/bin/thtagger"

}