summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorwillemw122021-02-14 08:52:47 +0100
committerwillemw122021-02-14 08:54:28 +0100
commit051ce54fe293d61b0ed79add5dd78fdf7678303c (patch)
tree67d8b647095111eb84093053e135b0874403611d /PKGBUILD
parenta441ba9a7f28ff52750099aaec2602f27475c016 (diff)
downloadaur-051ce54fe293d61b0ed79add5dd78fdf7678303c.tar.gz
Setup 'build' folder in prepare()
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 7 insertions, 3 deletions
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
}