[arch-commits] Commit in basket/trunk (PKGBUILD)

Antonio Rojas arojas at gemini.archlinux.org
Fri Sep 10 18:18:45 UTC 2021


    Date: Friday, September 10, 2021 @ 18:18:44
  Author: arojas
Revision: 423724

libgit2 1.2 rebuild

Modified:
  basket/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-10 16:55:38 UTC (rev 423723)
+++ PKGBUILD	2021-09-10 18:18:44 UTC (rev 423724)
@@ -5,8 +5,8 @@
 pkgname=basket
 _pkgver=2.49
 pkgver=${_pkgver}b
-pkgrel=4
-pkgdesc="All-purpose notes taker for KDE."
+pkgrel=5
+pkgdesc="All-purpose notes taker"
 arch=('x86_64')
 url="https://basket-notepads.github.io/"
 depends=('kcmutils' 'kfilemetadata' 'kparts' 'phonon-qt5' 'libgit2')
@@ -18,20 +18,15 @@
             'd68cffcb4ab5227524763dd74f707ff8fae2e79121cf6f92c915cc8d8de9724d')
 
 prepare() {
-  mkdir -p build
-
-  cd $pkgname-$_pkgver-beta
-  patch -p1 -i ../basket-libgit2-0.99.patch # Fix build with libgit 0.99
+  patch -d $pkgname-$_pkgver-beta -p1 < basket-libgit2-0.99.patch # Fix build with libgit 0.99
 }
 
 build() {
-  cd build
-  cmake ../$pkgname-$_pkgver-beta \
+  cmake -B build -S $pkgname-$_pkgver-beta \
     -DBUILD_TESTING=OFF
-  make
+  cmake --build build
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
 }



More information about the arch-commits mailing list