blob: 187300b95941387302cf5472ff3cf4b66e0d2172 (
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
|
# Maintainer: Hunter Peavey < printf "dev@die.bots" | sed "s/die.bots/krathalan.net/g" >
# General package information
pkgname=wtwitch
pkgver=2.3.4
pkgrel=1
pkgdesc="Terminal user interface for Twitch"
url="https://github.com/krathalan/wtwitch"
license=("GPL3")
arch=("any")
changelog="CHANGELOG"
# Dependencies
depends=("curl" "jq" "streamlink")
makedepends=("scdoc")
optdepends=('mpv: for watching streams'
'vlc: for watching streams')
# Download information
source=("${url}/archive/refs/tags/${pkgver}.tar.gz" "${url}/releases/download/${pkgver}/${pkgver}.tar.gz.sig")
validpgpkeys=("0C6B73F391FA26F0EBCD1F75C0F9AEE56E47D174")
sha256sums=("fb6b55d0538ec954a1c1fcff1b404fc1f9a5539319a07a879d0dcbc60073acea" "c1434ecf5ce797d88163769e990eac5bccebca6e332ef4b5e440d3e1d8796bc3")
build() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
# Create man page
scdoc < wtwitch.1.scd > wtwitch.1
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/src"
# wtwitch "binary"
install -D -m755 wtwitch "${pkgdir}/usr/bin/${pkgname}"
# Bash completion file
install -D -m644 wtwitch-completion.bash "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
# man page
install -D -m644 wtwitch.1 "${pkgdir}/usr/share/man/man1/wtwitch.1"
}
|