summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 52d42e9680d1da9cb7beaddaad5f4a0fea32303a (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=media-downloader-git
pkgver=4.4.0.r0.gcef0edc
pkgrel=1
pkgdesc='GUI front-end for downloading media files (yt-dlp, youtube-dl, ...)'
arch=(x86_64)
url=https://github.com/mhogomchungu/media-downloader
license=(GPL)
depends=(qt6-base)
makedepends=('cmake' 'git')
optdepends=('aria2: download files'
            'wget: download files'
            'youtube-dl: download files'
            'yt-dlp: download files')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S $pkgname -DBUILD_WITH_QT6=1 -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
  make -C build
}

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