summarylogtreecommitdiffstats
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
parent73fd54fdc4c34e461ee0a27622a03f1fd0897448 (diff)
downloadaur-102369c35e4252c2bd26fb2fbe71f845d1dbce97.tar.gz
Adopt, simplify
-rw-r--r--.SRCINFO6
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD31
3 files changed, 17 insertions, 25 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 76a97a7e0c8..515332fce11 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,13 @@
pkgbase = wlr-randr
- pkgdesc = Utility to manage outputs of a Wayland compositor. You need a support wlr-output-management-unstable-v1 in the compositor.
+ pkgdesc = A xrandr clone for wlroots compositors
pkgver = 0.1.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/emersion/wlr-randr
arch = x86_64
license = MIT
makedepends = meson
makedepends = ninja
- makedepends = gcc
depends = wayland
- provides = wlr-randr
source = https://github.com/emersion/wlr-randr/releases/download/v0.1.0/wlr-randr-0.1.0.tar.gz
source = https://github.com/emersion/wlr-randr/releases/download/v0.1.0/wlr-randr-0.1.0.tar.gz.sig
validpgpkeys = 34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..228a2ec1687
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+*.pkg.tar.*
+pkg
+src
+wlr-randr-*.tar.gz
+*.sig
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: