summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLolix2019-06-30 23:53:56 +0200
committerLolix2019-06-30 23:53:56 +0200
commitc1c5bd7952b495d4465ebe52f1a608f33921a2cf (patch)
tree284619d20b874df525e82e68be3123804b9fe846 /PKGBUILD
parent32a1f71b247221d2413e61f97b34066ed6561d2d (diff)
downloadaur-madrigal-git.tar.gz
add missing makedepends
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 11 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index dd9ea488b6f..ea79d36d36b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,4 @@
-# Maintainer: Fabio Loli <loli_fabio@protonmail.com>
-# https://github.com/FabioLolix
+# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix
pkgname=madrigal-git
pkgver=r192.8395a23
@@ -9,7 +8,7 @@ arch=('i686' 'x86_64')
url="https://github.com/CDrummond/madrigal"
license=('GPL3')
depends=('qt5-svg' 'hicolor-icon-theme')
-makedepends=('git')
+makedepends=('git' 'cmake')
provides=('madrigal')
source=("${pkgname}::git+https://github.com/CDrummond/madrigal.git")
md5sums=('SKIP')
@@ -18,11 +17,16 @@ pkgver() {
cd ${pkgname}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
-
-package() {
- install -d ${srcdir}/${pkgname}/build
- cd ${srcdir}/${pkgname}/build
+prepare() {
+ cd "$srcdir/$pkgname"
+ mkdir -p build
+}
+build() {
+ cd "$srcdir/$pkgname/build"
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
make
+}
+package() {
+ cd ${srcdir}/${pkgname}/build
make DESTDIR=$pkgdir install
}