# Maintainer: dec05eba pkgname=quickmedia-git pkgver=r377.290ca90 pkgrel=1 pkgdesc='A dmenu-inspired native client for web services. Supports youtube, nyaa.si, 4chan, matrix and several manga sites.' arch=('x86_64') url="https://git.dec05eba.com/QuickMedia" license=('GPL3') makedepends=('sibs') depends=('sfml' 'libx11' 'jsoncpp' 'cppcodec' 'tidy' 'curl' 'mpv' 'youtube-dl' 'libglvnd' 'libxrandr' 'noto-fonts' 'noto-fonts-cjk') 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' 'ffmpeg: For sending video metadata and thumbnail with /upload in matrix' ) provides=('QuickMedia') conflicts=('QuickMedia') source=("${pkgname}-${pkgver}.tar.gz::https://dec05eba.com/snapshot/QuickMedia.git.tar.gz") sha512sums=('e469c742a82c88522eea488880dbbd1dd91e5b8297fce4fd0c152ac561f4079cc1a9e614ebbdd9a5afafdf52d59af86c5862f46bd561d0e4c7a3fcfbfe3c87dc') build() { cd "$srcdir" sibs build --release } package() { cd "$srcdir" install -Dm755 "sibs-build/$(sibs platform)/release/QuickMedia" "$pkgdir/usr/bin/QuickMedia" install -Dm644 boards.json "$pkgdir/usr/share/quickmedia/boards.json" install -Dm644 input.conf "$pkgdir/usr/share/quickmedia/input.conf" for file in images/* icons/* shaders/*; 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 }