From dca1dbec27906464e7ebf84fac6253ba2ebeecc6 Mon Sep 17 00:00:00 2001 From: Danct12 Date: Tue, 23 Mar 2021 10:35:30 +0700 Subject: [PATCH] pkg: danctnix: amazfish: new pkgbuild Signed-off-by: Danct12 --- PKGBUILDS/danctnix/amazfish/PKGBUILD | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 PKGBUILDS/danctnix/amazfish/PKGBUILD diff --git a/PKGBUILDS/danctnix/amazfish/PKGBUILD b/PKGBUILDS/danctnix/amazfish/PKGBUILD new file mode 100644 index 00000000..be858db2 --- /dev/null +++ b/PKGBUILDS/danctnix/amazfish/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Bernhard Landauer + +pkgname=amazfish +_repo=harbour-$pkgname +pkgver=1.9.8 +pkgrel=1 +pkgdesc='Companion application for the Huami Amazfit Bip, Cor, MiBand2/3 and GTS' +arch=('x86_64' 'aarch64') +license=(GPL3) +url="https://github.com/piggz/$_repo" +makedepends=('git') +depends=('kcontacts' 'dbus' 'kdb' 'kirigami2' 'mlite' 'mpris-qt5' 'qt5-connectivity' 'qt5-location' 'qt5-quickcontrols2') +_commit="e1e9ba8571823d0971b19c92f67652428c1073b6" # v1.9.8 +_commit_libwatchfish="e3bf99e47c8c339b15eb4c8d6a485c22e9c7c2cd" +source=("git+$url.git#commit=$_commit" + "git+https://github.com/piggz/libwatchfish.git#commit=$_commit_libwatchfish") +md5sums=('SKIP' + 'SKIP') + +prepare() { + cd $_repo + git submodule init + git config submodule.libwatchfish.git.url $srcdir/libwatchfish + git submodule update +} + +build() { + cd $_repo + qmake-qt5 FLAVOR=kirigami PREFIX=/usr + make +} + +package() { + cd $_repo + make INSTALL_ROOT="$pkgdir" install +}