# Maintainer: dec05eba pkgname=quickmedia-git pkgver=r260.511716e pkgrel=1 pkgdesc='A native client for web media. Supports youtube, nyaa.si, 4chan 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' ) provides=('QuickMedia') conflicts=('QuickMedia') source=("${pkgname}-${pkgver}.tar.gz::https://dec05eba.com/snapshot/QuickMedia.git.tar.gz") sha512sums=('65479ba9e46369c6d47368bc60f126427045cb60a5d21d96e77f94671ec9998f1ab500b3435119ce38aa026a78955fe285417619dcd4b401a6cb539e9d3fe574') 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" for file in images/* icons/*; 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 }