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

pkgname=media-downloader-git
pkgver=1.0.0.r57.ge3b332a
pkgrel=1
pkgdesc="GUI front-end for downloading media files (youtube-dl, ...)"
arch=('x86_64')
url='https://github.com/mhogomchungu/media-downloader'
license=('GPL')
depends=('qt5-base')
makedepends=('cmake' 'git')
optdepends=('youtube-dl: download files' 'wget: download files')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
md5sums=('SKIP')

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

build() {
  cd $pkgname
  mkdir build
  cd build 
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release ..
  make
}

package() {
  cd $pkgname/build
  make DESTDIR="$pkgdir/" install
}