summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2af92204572
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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
+}
+