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

Balló György bgyorgy at archlinux.org
Thu Jun 3 11:50:19 UTC 2021


    Date: Thursday, June 3, 2021 @ 11:50:19
  Author: bgyorgy
Revision: 955650

upgpkg: spice-up 1.8.2-3: Add symlink for the binary

Modified:
  spice-up/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++----------------------
 1 file changed, 17 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-03 11:49:44 UTC (rev 955649)
+++ PKGBUILD	2021-06-03 11:50:19 UTC (rev 955650)
@@ -4,42 +4,37 @@
 
 pkgname=spice-up
 pkgver=1.8.2
-pkgrel=2
-pkgdesc="Create simple and beautiful presentations"
-arch=(x86_64)
-url="https://github.com/Philip-Scott/Spice-up"
-license=(GPL3)
-depends=(granite libevdev)
-makedepends=(cmake vala)
-checkdepends=(xorg-server-xvfb)
+pkgrel=3
+pkgdesc='Create simple and beautiful presentations'
+arch=('x86_64')
+url='https://github.com/Philip-Scott/Spice-up'
+license=('GPL3')
+depends=('granite' 'libevdev')
+makedepends=('cmake' 'vala')
+checkdepends=('xorg-server-xvfb')
 source=("https://github.com/Philip-Scott/Spice-up/archive/$pkgver/Spice-up-$pkgver.tar.gz"
-        "0001-Fix-build-with-vala-0.46.patch"
-        "0001-Add-missing-icons.patch")
+        '0001-Fix-build-with-vala-0.46.patch'
+        '0001-Add-missing-icons.patch')
 sha256sums=('67783d7fb8f7a4756f4312e8a43d4d9c9d60524956dd3de9076506a2da513c17'
             '482cec26f089f13e2bcf3edf427535cfabc840681eb2f754469828a0c1ac359b'
             '460d16cab1cd4ed7c8722e1dbf9d934b8ecdc8494d05e9b7448be3ef8630fd0d')
 
 prepare() {
-  [[ -d build ]] || mkdir build
-  cd Spice-up-$pkgver
-  patch -Np1 -i ../0001-Fix-build-with-vala-0.46.patch
-  patch -Np1 -i ../0001-Add-missing-icons.patch
+  patch -d Spice-up-$pkgver -Np1 -i ../0001-Fix-build-with-vala-0.46.patch
+  patch -d Spice-up-$pkgver -Np1 -i ../0001-Add-missing-icons.patch
 }
 
 build() {
-  cd build
-  cmake -G "Unix Makefiles" ../Spice-up-$pkgver/ \
-    -DCMAKE_INSTALL_PREFIX=/usr
-  make
+  cmake -S Spice-up-$pkgver -B build -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX='/usr'
+  cmake --build build
 }
 
 check() {
-  cd build
   dbus-run-session xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' \
-    make test CTEST_OUTPUT_ON_FAILURE=1
+    ctest --test-dir build --output-on-failure
 }
 
 package() {
-  cd build
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" cmake --install build
+  ln -s com.github.philip-scott.spice-up "$pkgdir/usr/bin/$pkgname"
 }



More information about the arch-commits mailing list