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

Brett Cornwall ainola at archlinux.org
Tue Jul 30 01:08:41 UTC 2019


    Date: Tuesday, July 30, 2019 @ 01:08:40
  Author: ainola
Revision: 494723

wlroots: Install rootston

Rootston (part of the wlroots repo) was already being built but not installed.
As a user requested its inclusion into [community] it seems reasonable to add
it.

https://bugs.archlinux.org/task/63286?project=5&dev=20134

Modified:
  wlroots/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++++++++------
 1 file changed, 16 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-07-30 00:20:35 UTC (rev 494722)
+++ PKGBUILD	2019-07-30 01:08:40 UTC (rev 494723)
@@ -1,8 +1,10 @@
 # Maintainer: Ainola <ainola at archlinux.org>
+# Contributor: Omar Pakker
 
-pkgname=wlroots
+pkgbase=wlroots
+pkgname=(wlroots rootston)
 pkgver=0.6.0
-pkgrel=1
+pkgrel=2
 license=('MIT')
 pkgdesc='Modular Wayland compositor library'
 url='https://github.com/swaywm/wlroots'
@@ -18,7 +20,7 @@
 )
 makedepends=('meson' 'ninja' 'wayland-protocols')
 source=(
-    "$pkgname-$pkgver.tar.gz::https://github.com/swaywm/wlroots/archive/$pkgver.tar.gz"
+    "$pkgbase-$pkgver.tar.gz::https://github.com/swaywm/wlroots/archive/$pkgver.tar.gz"
     "https://github.com/swaywm/wlroots/releases/download/$pkgver/wlroots-$pkgver.tar.gz.sig"
 )
 sha256sums=('9cf3716f3683d800df8b150f256ff66dad65faf13a9d67c284f67a9444d28c70'
@@ -26,7 +28,7 @@
 validpgpkeys=('9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A') # Drew DeVault
 
 build() {
-    meson "$pkgname-$pkgver" build \
+    meson "$pkgbase-$pkgver" build \
         --prefix=/usr \
         --buildtype=plain \
         -Dlibcap=enabled \
@@ -40,7 +42,15 @@
     ninja -C build
 }
 
-package() {
+package_wlroots() {
     DESTDIR="$pkgdir" ninja -C build install
-    install -Dm644 "$pkgname-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
+    install -Dm644 "$pkgbase-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgbase/"
 }
+
+package_rootston() {
+    depends=(wlroots)
+
+    install -Dm755 "build/rootston/rootston" -t "$pkgdir/usr/bin/"
+    install -Dm755 "$pkgbase-$pkgver/rootston/rootston.ini.example" -t "$pkgdir/usr/share/doc/rootston/"
+    install -Dm644 "$pkgbase-$pkgver/LICENSE" -t "$pkgdir/usr/share/licenses/rootston/"
+}



More information about the arch-commits mailing list