# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=voicememo
pkgver=0_git20200308
pkgrel=0
_commit="ae3b841f7e09e1cdd22bf2d83d1d23d4f05d4741"
pkgdesc="Audio recorder for Plasma Mobile (and other platforms)"
url="https://invent.kde.org/jbbgameich/voicememo/"
arch="all !armhf" # armhf blocked by extra-cmake-modules
license="GPL-3.0-only"
depends="kirigami2"
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtdeclarative-dev qt5-qtquickcontrols2-dev qt5-qtmultimedia-dev kirigami2-dev ki18n-dev"
source="$pkgname-$_commit.tar.gz::https://invent.kde.org/jbbgameich/voicememo/-/archive/$_commit.tar.gz"
builddir="$srcdir/$pkgname-$_commit"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIB=lib
	make -C build
}

package() {
	DESTDIR="$pkgdir" make -C build install
}

sha512sums="5eb8787e9d469425674cab0fbcc9e47dc2c8bf819c0749528c6940769f0fda9f8d74f8cbcd0f839d4b91db8844c113be26b7948959b9c31e48188a2b9a82d5ce  voicememo-ae3b841f7e09e1cdd22bf2d83d1d23d4f05d4741.tar.gz"
