summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122021-06-25 09:37:13 +0200
committerwillemw122021-06-25 09:37:13 +0200
commit4b65f9a3a9c5cc2a66c2c1731ddedb0cf957d119 (patch)
treec21702d0bb35a2e92137b55be481fc22694bb415
parent051ce54fe293d61b0ed79add5dd78fdf7678303c (diff)
downloadaur-media-downloader-git.tar.gz
Update cmake build
Change pkgver()
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD23
2 files changed, 10 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0d459c98a0e..18cfbca106d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = media-downloader-git
pkgdesc = GUI front-end for downloading media files (youtube-dl, ...)
- pkgver = 1.0.0.r61.gdbc8459
+ pkgver = 1.4.0.r42.g672e9c4
pkgrel = 1
url = https://github.com/mhogomchungu/media-downloader
arch = x86_64
@@ -8,12 +8,11 @@ pkgbase = media-downloader-git
makedepends = cmake
makedepends = git
depends = qt5-base
- optdepends = youtube-dl: download files
optdepends = wget: download files
+ optdepends = youtube-dl: download files
provides = media-downloader
conflicts = media-downloader
source = media-downloader-git::git+https://github.com/mhogomchungu/media-downloader.git
- md5sums = SKIP
+ sha256sums = SKIP
pkgname = media-downloader-git
-
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
}