summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 7 insertions, 16 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6be229998a9..5b425365332 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: willemw <willemw12@gmail.com>
pkgname=media-downloader-git
-pkgver=1.0.0.r61.gdbc8459
+pkgver=1.4.0.r42.g672e9c4
pkgrel=1
pkgdesc="GUI front-end for downloading media files (youtube-dl, ...)"
arch=('x86_64')
@@ -9,31 +9,22 @@ url='https://github.com/mhogomchungu/media-downloader'
license=('GPL')
depends=('qt5-base')
makedepends=('cmake' 'git')
-optdepends=('youtube-dl: download files' 'wget: download files')
+optdepends=('wget: download files' 'youtube-dl: download files')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
-md5sums=('SKIP')
+sha256sums=('SKIP')
pkgver() {
- cd $pkgname
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
-}
-
-prepare() {
- cd $pkgname
- rm -rf build
- mkdir build
+ git -C $pkgname describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
- cd $pkgname/build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release ..
- make
+ cmake -B build -S $pkgname -DCMAKE_BUILD_TYPE=None -DCMAKE_INSTALL_PREFIX=/usr -Wno-dev
+ make -C build
}
package() {
- cd $pkgname/build
- make DESTDIR="$pkgdir/" install
+ make -C build DESTDIR="$pkgdir/" install
}