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

Alexander Rødseth arodseth at archlinux.org
Thu Mar 14 08:42:25 UTC 2019


    Date: Thursday, March 14, 2019 @ 08:42:24
  Author: arodseth
Revision: 440955

upgpkg: sway 1.0-4

Modified:
  sway/trunk/PKGBUILD

----------+
 PKGBUILD |   40 +++++++++++++++++-----------------------
 1 file changed, 17 insertions(+), 23 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-14 08:38:25 UTC (rev 440954)
+++ PKGBUILD	2019-03-14 08:42:24 UTC (rev 440955)
@@ -1,19 +1,15 @@
 # Maintainer: Jerome Leclanche <jerome at leclan.ch>
+# Contributor: Alexander F. Rødseth <xyproto at archlinux.org>
+
 pkgname=sway
 pkgver=1.0
-pkgrel=3
-pkgdesc="Tiling Wayland compositor and replacement for the i3 window manager"
-arch=("x86_64")
-url="https://swaywm.org/"
-license=("MIT")
-depends=(
-	"cairo"
-	"json-c"
-	"pango"
-	"pcre"
-	"wlroots"
-)
-makedepends=("meson" "ninja" "gdk-pixbuf2" "scdoc" "wayland-protocols")
+pkgrel=4
+pkgdesc='Tiling Wayland compositor and replacement for the i3 window manager'
+arch=(x86_64)
+url='https://swaywm.org/'
+license=(MIT)
+depends=(cairo gdk-pixbuf2 json-c pango pcre wlroots)
+makedepends=(meson ninja scdoc wayland-protocols)
 optdepends=(
 	"dmenu: Default for launching applications."
 	"ffmpeg: For recording screencasts."
@@ -29,20 +25,18 @@
 	"$pkgname-$pkgver.tar.gz::https://github.com/swaywm/$pkgname/archive/$pkgver.tar.gz"
 	"https://github.com/swaywm/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz.sig"
 )
-sha256sums=(
-	"24dafd0f1e630e97a5dd47233841adf856b665e2321d6207acfe6b3002d1bc56"
-	"SKIP"
-)
+sha256sums=('24dafd0f1e630e97a5dd47233841adf856b665e2321d6207acfe6b3002d1bc56'
+            'SKIP')
 
 build() {
-	cd "$pkgname-$pkgver"
-	mkdir "build"
-	cd "build"
-	meson -Dwerror=false --prefix /usr ".."
-	ninja
+	mkdir -p build
+	arch-meson build $pkgname-$pkgver -Dwerror=false
+	ninja -C build
 }
 
 package() {
-	DESTDIR="$pkgdir" ninja -C "$pkgname-$pkgver/build" install
+	DESTDIR="$pkgdir" ninja -C build install
 	install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
+
+# vim: ts=2 sw=2 et



More information about the arch-commits mailing list