blob: ca3eeb6e378c988d064a820c79f1ed13bd06b224 (
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
71
|
# Maintainer: dec05eba <dec05eba@protonmail.com>
pkgname=quickmedia
pkgver=r1438.29c346f
pkgrel=3
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=('GPL-3.0-only')
makedepends=('sibs')
depends=('libglvnd' 'libx11' 'curl' 'mpv' 'libxrandr' 'libxrender' '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'
'yt-dlp: To download soundcloud music'
)
provides=('quickmedia' 'qm' 'quickmedia-video-player')
conflicts=('quickmedia' 'qm' 'quickmedia-video-player')
source=(
"${pkgname}-${pkgver}.tar.gz::https://dec05eba.com/snapshot/QuickMedia.git.${pkgver}.tar.gz"
"twemoji-2.tar.gz::https://dec05eba.com/files/twemoji.tar.gz"
)
noextract=("twemoji-2.tar.gz")
sha512sums=(
'27f12536a865701d609d46184d3edfc8ad0aa48f37606728809da5bff27f05da1292da870bdbd7600e0c5fe70780e40117199511765ae57a4a70ba20d26c30f6'
'a3c7a268bd48bd79b6bfc771affd56d71ffd78ba4df8e2a9e1783162a78c1f053c408e02f4d49ca96eee6a0a19b8cfc85197ad40d497cd89934b8311dcfebe2b'
)
prepare() {
cd "$srcdir"
mkdir -p emoji
bsdtar -xf twemoji-2.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/scripts/ytdl_hook.lua "$pkgdir/usr/share/quickmedia/mpv/scripts/ytdl_hook.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
}
|