summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwillemw122021-02-14 08:52:47 +0100
committerwillemw122021-02-14 08:54:28 +0100
commit051ce54fe293d61b0ed79add5dd78fdf7678303c (patch)
tree67d8b647095111eb84093053e135b0874403611d
parenta441ba9a7f28ff52750099aaec2602f27475c016 (diff)
downloadaur-051ce54fe293d61b0ed79add5dd78fdf7678303c.tar.gz
Setup 'build' folder in prepare()
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD10
2 files changed, 8 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index dd910a21cf6..0d459c98a0e 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.r57.ge3b332a
+ pkgver = 1.0.0.r61.gdbc8459
pkgrel = 1
url = https://github.com/mhogomchungu/media-downloader
arch = x86_64
diff --git a/PKGBUILD b/PKGBUILD
index 2af92204572..6be229998a9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: willemw <willemw12@gmail.com>
pkgname=media-downloader-git
-pkgver=1.0.0.r57.ge3b332a
+pkgver=1.0.0.r61.gdbc8459
pkgrel=1
pkgdesc="GUI front-end for downloading media files (youtube-dl, ...)"
arch=('x86_64')
@@ -20,10 +20,14 @@ pkgver() {
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
-build() {
+prepare() {
cd $pkgname
+ rm -rf build
mkdir build
- cd build
+}
+
+build() {
+ cd $pkgname/build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=release ..
make
}