# Maintainer: Antoine Impromptux <impromptux (a) mailo dot com>
pkgname=youtubedl-gui
_pkgname=ytdl-gui
pkgver=4.4.3
pkgrel=1
arch=('x86_64'
      'aarch64')
license=('GPL3')
pkgdesc="Download videos and audio from various sources(1000+) including YouTube."
source=("https://codeberg.org/impromptux/ytdl-gui/archive/v4.4.3.zip")
sha256sums=('ad98006236c3420adaaa9f33c5be3342ee3a2253d15314b4b2faf193d585a1f2')
provides=("youtubedl-gui")
conflicts=("youtubedl-gui")
makedepends=("cmake")
depends=("yt-dlp"
         "qt6-base"
         "ffmpeg"
         "hicolor-icon-theme")

optdepends=("breeze: Better looking theme than default one"
          "libnotify: Notification at the end of download"
)

build() {
        cd ${_pkgname}
        cmake -B build
        make -C build -j`nproc`
}

package() {
        cd ${_pkgname}
        make -C build DESTDIR="$pkgdir/" install
}
