Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/swaylock: avoid use of git during build

From: alpine-mips-patches <info_at_mobile-stream.com>
Date: Thu, 7 Mar 2019 15:14:20 +0000

Use the package option to specify its version string during build.

Also make sure to honour the documented order of meson command-line
arguments: positional arguments (here build) should go last.
---
 testing/swaylock/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testing/swaylock/APKBUILD b/testing/swaylock/APKBUILD
index 02f18e877c..b090a90c91 100644
--- a/testing/swaylock/APKBUILD
+++ b/testing/swaylock/APKBUILD
_at_@ -2,7 +2,7 @@
 # Maintainer:
 pkgname=swaylock
 pkgver=1.3
-pkgrel=1
+pkgrel=2
 pkgdesc="Screen locker for Wayland"
 url="http://swaywm.org"
 arch="all"
_at_@ -35,7 +35,7 @@ prepare() {
 
 build() {
 	cd "$builddir"
-	meson build --prefix /usr
+	meson -Dswaylock-version="$pkgver" --prefix /usr build
 	ninja -C build
 }
 
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Mar 07 2019 - 15:14:20 UTC