summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRobert Cegliński2020-09-21 13:14:55 +0200
committerRobert Cegliński2020-09-21 13:21:59 +0200
commit102369c35e4252c2bd26fb2fbe71f845d1dbce97 (patch)
tree00f75ce8142108b83b730006e32c2a968d07bfbe /PKGBUILD
parent73fd54fdc4c34e461ee0a27622a03f1fd0897448 (diff)
downloadaur-102369c35e4252c2bd26fb2fbe71f845d1dbce97.tar.gz
Adopt, simplify
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD31
1 files changed, 10 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 3d67e118b56..65b67d3bf5e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,37 +1,26 @@
-# -*- mode: pkgbuild; -*-
-# Maintainer: Christopher Snowhill <chris@kode54.net>
+# Maintainer: Robert Cegliński <rob.ceglinski@gmail.com>
+# Contributor: Christopher Snowhill <chris@kode54.net>
# Contributor: Denis Zheleztsov <difrex.punk@gmail.com>
+
pkgname=wlr-randr
pkgver=0.1.0
-pkgrel=1
-pkgdesc="Utility to manage outputs of a Wayland compositor. You need a support wlr-output-management-unstable-v1 in the compositor."
+pkgrel=2
+pkgdesc="A xrandr clone for wlroots compositors"
arch=('x86_64')
url="https://github.com/emersion/wlr-randr"
license=('MIT')
depends=("wayland")
-makedepends=("meson" "ninja" "gcc")
-checkdepends=()
-optdepends=()
-provides=("wlr-randr")
+makedepends=("meson" "ninja")
source=("https://github.com/emersion/wlr-randr/releases/download/v$pkgver/wlr-randr-$pkgver.tar.gz"{,.sig})
sha256sums=('dbf2f02aa4d4f48dc9cef1edd1137a8ee68daa85f3c824a28c92376fd1591844' 'SKIP')
validpgpkeys=('34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48')
-prepare() {
- cd "$pkgname-$pkgver"
- meson --prefix /usr "$srcdir/build"
-}
-
build() {
- cd "$srcdir/$pkgname-$pkgver"
-
- ninja -C "$srcdir/build"
+ arch-meson $pkgname-$pkgver build
+ meson compile -C build
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
-
- DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
+ DESTDIR="$pkgdir" meson install -C build
+ install -Dm644 $pkgname-$pkgver/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-# vim:set ts=2 sw=2 et: