summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c0f28dace6fc91c1bbf65f7627ac1a5354b53bf (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
# Maintainer: fr0stb1rd <fr0stb1rd@proton.me>

pkgname=subtitle-deduplicator
pkgver=1.0.2
pkgrel=1
pkgdesc="Remove duplicate/ghost entries from SRT subtitle files generated by auto-captioning tools"
arch=('any')
url="https://github.com/fr0stb1rd/subtitle-deduplicator"
license=('MIT')
depends=('python')
makedepends=('python-build' 'python-installer' 'python-hatchling')
source=("https://files.pythonhosted.org/packages/source/s/subtitle-deduplicator/subtitle_deduplicator-${pkgver}.tar.gz")
sha512sums=('ce71473063d8c7cb4f06b69f8cd5095c3f1cec08f2634f3dd2016f510e78173593aebbfca7b93953e9c12c057fa5bf07fe7d8f20dfa9a55eb39731475ef057e9')

build() {
    cd "subtitle_deduplicator-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "subtitle_deduplicator-${pkgver}"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}