Date: Thursday, June 3, 2021 @ 10:47:40 Author: bgyorgy Revision: 955640
upgpkg: feathernotes 0.9.0-2: Build with cmake Modified: feathernotes/trunk/PKGBUILD ----------+ PKGBUILD | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-06-03 10:34:32 UTC (rev 955639) +++ PKGBUILD 2021-06-03 10:47:40 UTC (rev 955640) @@ -3,15 +3,15 @@ pkgname=feathernotes pkgver=0.9.0 -pkgrel=1 +pkgrel=2 pkgdesc='Lightweight Qt hierarchical notes-manager' -arch=(x86_64) +arch=('x86_64') url='https://github.com/tsujan/FeatherNotes' -license=(GPL3) -depends=(hicolor-icon-theme hunspell qt5-svg qt5-translations qt5-x11extras) -makedepends=(qt5-tools) +license=('GPL3') +depends=('hicolor-icon-theme' 'hunspell' 'qt5-svg' 'qt5-translations' 'qt5-x11extras') +makedepends=('cmake' 'ninja' 'qt5-tools') source=("https://github.com/tsujan/FeatherNotes/releases/download/V$pkgver/FeatherNotes-$pkgver.tar.xz"{,.asc} - "feathernotes.appdata.xml") + 'feathernotes.appdata.xml') sha256sums=('09b13be2744f22dfe64f40839ea6a55dcde54bcf350b9b6c2f960c2d05030ea4' 'SKIP' '064e5dbf74cfa4c5932fbe6e516d29f8ed3caf489b30c2a01c71d488ac822ae6') @@ -18,13 +18,11 @@ validpgpkeys=('19DFDF3A579BD509DBB572D8BE793007AD22DF7E') build() { - cd FeatherNotes-$pkgver - qmake-qt5 PREFIX=/usr WITH_HUNSPELL=YES - make + cmake -S FeatherNotes-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr' + cmake --build build } package() { - cd FeatherNotes-$pkgver - make INSTALL_ROOT="$pkgdir" install - install -Dm644 ../$pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml" + DESTDIR="$pkgdir" cmake --install build + install -Dm644 $pkgname.appdata.xml "$pkgdir/usr/share/metainfo/$pkgname.appdata.xml" }