diff options
author | mrxx | 2020-07-27 17:37:52 +0200 |
---|---|---|
committer | mrxx | 2020-07-27 17:37:52 +0200 |
commit | c60ea7d7e49eade54b1935826a3a003a2cc1617d (patch) | |
tree | d62e3898425f584fb7d2835a4290d93d1b76674d | |
parent | 7f81bafb227a024d1309d2423c211cc82bc620ba (diff) | |
download | aur-c60ea7d7e49eade54b1935826a3a003a2cc1617d.tar.gz |
Add git submodule handling
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 14 insertions, 7 deletions
@@ -1,7 +1,7 @@ pkgbase = musique pkgdesc = A finely crafted music player pkgver = 1.9 - pkgrel = 1 + pkgrel = 2 url = https://flavio.tordini.org/musique arch = x86_64 license = GPL3 @@ -10,6 +10,7 @@ pkgbase = musique depends = phonon-qt5 depends = taglib depends = mpv + optdepends = finetune source = git+https://github.com/flaviotordini/musique.git#tag=1.9 source = git+https://github.com/flaviotordini/http.git source = git+https://github.com/flaviotordini/idle.git @@ -1,4 +1,5 @@ # Maintainer: mrxx <mrxx at cyberhome dot at> +# Contributor: Mark Wagie <mark dot wagie at tutanota dot com> # Contributor: Frederic Bezies < fredbezies at gmail dot com> # Contributor: jddolvin <jddolvin@atheist.com> # Contributor: arriagga <ramon.arriaga@gmail.com> @@ -6,13 +7,14 @@ pkgname=musique pkgver=1.9 -pkgrel=1 +pkgrel=2 pkgdesc='A finely crafted music player' arch=('x86_64') url='https://flavio.tordini.org/musique' _giturl='https://github.com/flaviotordini' license=('GPL3') depends=('phonon-qt5' 'taglib' 'mpv') +optdepends=('finetune') makedepends=('git' 'qt5-tools') source=("git+${_giturl}/musique.git#tag=${pkgver}" "git+${_giturl}/http.git" "git+${_giturl}/idle.git" "git+${_giturl}/media.git") sha256sums=('SKIP' @@ -21,14 +23,18 @@ sha256sums=('SKIP' 'SKIP') prepare() { - mkdir -p build - mv http idle media $pkgname/lib/ - sed -i 's|#include "imagedownloader.h"|#include "../imagedownloader.h"|' $pkgname/src/model/artist.cpp + cd $pkgname + git submodule init + git config submodule.lib/http.url "$srcdir/http" + git config submodule.lib/idle.url "$srcdir/idle" + git config submodule.lib/media.url "$srcdir/media" + git submodule update + + sed -i '1313d;1315i#ifdef APP_EXTRA' src/mainwindow.cpp } build() { - sed -i '1313d;1315i#ifdef APP_EXTRA' musique/src/mainwindow.cpp - cd build + mkdir -p build && cd build qmake-qt5 ../$pkgname PREFIX=/usr make } |