summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95c267b88ffb70d9f10f283eb646dc9b98f62c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: Federico Yulita <federico_yulita@hotmail.com>
pkgname="srt-edit"
pkgver=1
pkgrel=1
pkgdesc="A simple tool to edit .srt subtitles from the command line"
arch=("any")
url="https://github.com/fyulita/$pkgname"
license=("GPL3")
depends=("python>=3")
makedepends=("git")
source=("$pkgname::git+$url.git")
md5sums=("SKIP")

pkgver() {
    cd "$pkgname"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
    cd "$pkgname"
    install -Dm755 srt_edit.py "$pkgdir/usr/bin/$pkgname"
    install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}