[arch-commits] Commit in notes-up/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Thu Jun 3 11:49:36 UTC 2021
Date: Thursday, June 3, 2021 @ 11:49:36
Author: bgyorgy
Revision: 955648
upgpkg: notes-up 2.0.2-4: Add symlink for the binary
Modified:
notes-up/trunk/PKGBUILD
----------+
PKGBUILD | 37 ++++++++++++++++---------------------
1 file changed, 16 insertions(+), 21 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-03 11:43:23 UTC (rev 955647)
+++ PKGBUILD 2021-06-03 11:49:36 UTC (rev 955648)
@@ -4,36 +4,31 @@
pkgname=notes-up
pkgver=2.0.2
-pkgrel=3
-pkgdesc="Write beautiful notes fast and easy using Markdown"
-arch=(x86_64)
-url="https://github.com/Philip-Scott/Notes-up"
-license=(GPL2)
-depends=(discount granite gtksourceview3 gtkspell3 webkit2gtk)
-makedepends=(cmake vala)
-source=(https://github.com/Philip-Scott/Notes-up/archive/$pkgver/Notes-up-$pkgver.tar.gz
- fix-build.patch
- 0001-Add-missing-icon.patch)
+pkgrel=4
+pkgdesc='Write beautiful notes fast and easy using Markdown'
+arch=('x86_64')
+url='https://github.com/Philip-Scott/Notes-up'
+license=('GPL')
+depends=('discount' 'granite' 'gtksourceview3' 'gtkspell3' 'webkit2gtk')
+makedepends=('cmake' 'ninja' 'vala')
+source=("https://github.com/Philip-Scott/Notes-up/archive/$pkgver/Notes-up-$pkgver.tar.gz"
+ 'fix-build.patch'
+ '0001-Add-missing-icon.patch')
sha256sums=('35eb1df71034a118e66e6e00f5394c68423cfba7ceac035bde156d77da933b17'
'a0187a27ddf8a2203da65c63eff62c3dcd0beaa4ac10f2ed604951706f3db1e3'
'8f3dfb0f410b34a79b24a129e75e954414b06853519b000a4efc4be312d8c2fd')
prepare() {
- [[ -d build ]] || mkdir build
- cd Notes-up-$pkgver
- patch -Np1 -i ../fix-build.patch
- patch -Np1 -i ../0001-Add-missing-icon.patch
+ patch -d Notes-up-$pkgver -Np1 -i ../fix-build.patch
+ patch -d Notes-up-$pkgver -Np1 -i ../0001-Add-missing-icon.patch
}
build() {
- cd build
- cmake -G "Unix Makefiles" ../Notes-up-$pkgver/ \
- -DCMAKE_INSTALL_PREFIX=/usr \
- -Dnoele=1
- make
+ cmake -S Notes-up-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr' -Dnoele=1
+ cmake --build build
}
package() {
- cd build
- make DESTDIR="$pkgdir" install
+ DESTDIR="$pkgdir" cmake --install build
+ ln -s com.github.philip-scott.notes-up "$pkgdir/usr/bin/$pkgname"
}
More information about the arch-commits
mailing list