[arch-commits] Commit in featherpad/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Thu Jun 3 10:48:16 UTC 2021
Date: Thursday, June 3, 2021 @ 10:48:15
Author: bgyorgy
Revision: 955642
upgpkg: featherpad 0.18.0-2: Build with cmake
Modified:
featherpad/trunk/PKGBUILD
----------+
PKGBUILD | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-03 10:47:47 UTC (rev 955641)
+++ PKGBUILD 2021-06-03 10:48:15 UTC (rev 955642)
@@ -3,15 +3,15 @@
pkgname=featherpad
pkgver=0.18.0
-pkgrel=1
+pkgrel=2
pkgdesc='Lightweight Qt plain text editor'
-arch=(x86_64)
+arch=('x86_64')
url='https://github.com/tsujan/FeatherPad'
-license=(GPL3)
-depends=(hunspell qt5-svg qt5-translations qt5-x11extras hicolor-icon-theme)
-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/FeatherPad/releases/download/V$pkgver/FeatherPad-$pkgver.tar.xz"{,.asc}
- "featherpad.appdata.xml")
+ 'featherpad.appdata.xml')
sha256sums=('f95c5494451890eefa7177022b065648b0633d5096715ae7f47c2cc7d784aec8'
'SKIP'
'd67bc310f4c31257b795beabbce2d0887640088b0fe3040307906da0d9f760d9')
@@ -18,13 +18,11 @@
validpgpkeys=('19DFDF3A579BD509DBB572D8BE793007AD22DF7E')
build() {
- cd FeatherPad-$pkgver
- qmake-qt5 PREFIX=/usr
- make
+ cmake -S FeatherPad-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr'
+ cmake --build build
}
package() {
- cd FeatherPad-$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"
}
More information about the arch-commits
mailing list