blob: 1bb963a1157005d9c27a20ba056befb9da74cbab (
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
67
68
69
70
|
# Maintainer: dec05eba <dec05eba@protonmail.com>
pkgname=quickmedia-git
pkgver=r1237.68528e1
pkgrel=1
pkgdesc='A rofi inspired native client for web services. Supports youtube, peertube, lbry, soundcloud, nyaa.si, 4chan, matrix, saucenao, hotexamples, anilist, dramacool and several manga sites.'
arch=('x86_64')
url="https://git.dec05eba.com/QuickMedia"
license=('GPL3')
makedepends=('sibs-git')
depends=('libglvnd' 'libx11' 'curl' 'mpv' 'libxrandr' 'noto-fonts')
optdepends=(
'libnotify: For showing notifications'
'automedia: For automatically downloading new chapters of tracked manga'
'waifu2x-ncnn-vulkan: For upscaling manga pages when using the --upscale-images option'
'xdg-utils: For downloading torrents when using nyaa.si plugin or opening remote links'
'ffmpeg: For displaying webp thumbnails, uploading video thumbnails on matrix and merging video and audio when downloading youtube videos'
'noto-fonts-cjk: To display chinese, japanese and korean characters'
'source-highlight: For syntax highlighting in matrix codeblocks'
)
provides=('quickmedia' 'qm' 'quickmedia-video-player')
conflicts=('quickmedia' 'qm' 'quickmedia-video-player')
options=(!strip)
source=(
"${pkgname}-${pkgver}.tar.gz::https://dec05eba.com/snapshot/QuickMedia.git.r1237.68528e1.tar.gz"
"twemoji.tar.gz::https://dec05eba.com/files/twemoji.tar.gz"
)
noextract=("twemoji.tar.gz")
sha512sums=(
'c3355c7473ab89286f0676de3af19c238010ebb4b53082fec9c7736ef26a35ab56a7867abd2eabad108650e431d48498b09a1fb965ef61a5393624719e4fe5d9'
'01b4cfa98570ab1eafa6e29aece89b3fe5fa40214f68183b2423339a78ba0ce8068068951f4115ac617ae1a35f18439a02b40cfd0bc8ed4b315d1848787c9a3b'
)
prepare() {
cd "$srcdir"
mkdir emoji
bsdtar -xf twemoji.tar.gz -C emoji
}
build() {
cd "$srcdir"
sibs build --release video_player
sibs build --release
}
package() {
cd "$srcdir"
install -Dm755 "video_player/sibs-build/$(sibs platform)/release/quickmedia-video-player" "$pkgdir/usr/bin/quickmedia-video-player"
install -Dm755 "sibs-build/$(sibs platform)/release/quickmedia" "$pkgdir/usr/bin/quickmedia"
ln -sf "/usr/bin/quickmedia" "$pkgdir/usr/bin/qm"
install -Dm644 boards.json "$pkgdir/usr/share/quickmedia/boards.json"
install -Dm644 example-config.json "$pkgdir/usr/share/quickmedia/example-config.json"
install -Dm644 README.md "$pkgdir/usr/share/quickmedia/README.md"
install -Dm644 mpv/fonts/Material-Design-Iconic-Font.ttf "$pkgdir/usr/share/quickmedia/mpv/fonts/Material-Design-Iconic-Font.ttf"
install -Dm644 mpv/scripts/mordenx.lua "$pkgdir/usr/share/quickmedia/mpv/scripts/mordenx.lua"
install -Dm644 mpv/input.conf "$pkgdir/usr/share/quickmedia/mpv/input.conf"
install -Dm644 mpv/mpv.conf "$pkgdir/usr/share/quickmedia/mpv/mpv.conf"
for file in images/* icons/* shaders/* themes/* emoji/*; do
install -Dm644 "$file" "$pkgdir/usr/share/quickmedia/$file"
done
for file in launcher/*; do
filename=$(basename "$file")
install -Dm644 "$file" "$pkgdir/usr/share/applications/$filename"
done
}
|