diff options
author | Vincent Grande | 2021-01-30 01:41:35 -0500 |
---|---|---|
committer | Vincent Grande | 2021-01-30 01:41:35 -0500 |
commit | d0d2cbbfbe1ff17c40259712a5b7df46334c77f7 (patch) | |
tree | 6fefd72b223c36a5738327ab7aaa5a2fa9975bf9 | |
download | aur-d0d2cbbfbe1ff17c40259712a5b7df46334c77f7.tar.gz |
initial upload
-rw-r--r-- | .SRCINFO | 27 | ||||
-rw-r--r-- | PKGBUILD | 71 |
2 files changed, 98 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..f67e39612a71 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,27 @@ +pkgbase = wlroots-strace-git + pkgdesc = Modular Wayland compositor library + pkgver = 0.10.1 + pkgrel = 1 + url = https://github.com/swaywm/wlroots + arch = x86_64 + license = MIT + makedepends = meson + makedepends = ninja + makedepends = wayland-protocols + depends = libinput + depends = libxkbcommon + depends = opengl-driver + depends = pixman + depends = xcb-util-errors + depends = xcb-util-image + depends = xcb-util-wm + provides = libwlroots.so + provides = wlroots + provides = wlroots-git + conflicts = wlroots + conflicts = wlroots-git + source = git+https://github.com/swaywm/wlroots + sha512sums = SKIP + +pkgname = wlroots-strace-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..ee57772b7496 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,71 @@ +# Maintainer : Vincent Grande <shoober420@gmail.com> +# Contributor : Adrian Perez de Castro <aperez@igalia.com> +# Contributor : Eric Vidal <eric@obarun.org> +# Contributor : Jean-Michel T.Dydak <jean-michel@obarun.org> +# Contributor : Brett Cornwall <ainola@archlinux.org> +# Contributor : Omar Pakker + +pkgname=wlroots-strace-git +pkgver=0.10.1 +pkgrel=1 +pkgdesc='Modular Wayland compositor library' +url="https://github.com/swaywm/wlroots" +arch=('x86_64') +license=('MIT') +source=("git+https://github.com/swaywm/wlroots") +sha512sums=('SKIP') + +depends=( + 'libinput' + 'libxkbcommon' + 'opengl-driver' + 'pixman' + 'xcb-util-errors' + 'xcb-util-image' + 'xcb-util-wm' +) +makedepends=( + 'meson' + 'ninja' + 'wayland-protocols' +) +provides=('libwlroots.so' 'wlroots' 'wlroots-git') +conflicts=('wlroots' 'wlroots-git') + +pkgver () { + cd wlroots + ( + set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +_path=( + --prefix=/usr +) + +_flags=( + --buildtype=plain + -Dlogind=disabled + -Dlogind-provider=elogind + -Dlibseat=disabled + -Dxcb-errors=enabled + -Dxcb-icccm=enabled + -Dxcb-xkb=enabled + -Dxwayland=enabled + -Dx11-backend=enabled + -Dexamples=false + -Dxdg-foreign=disabled + -Db_sanitize=address,undefined +) + +build() { + meson wlroots build "${_path[@]}" "${_flags[@]}" + ninja $NINJAFLAGS -C build +} + +package() { + DESTDIR="$pkgdir" ninja $NINJAFLAGS -C build install + install -Dm644 "wlroots/LICENSE" -t "$pkgdir/usr/share/licenses/wlroots/" +} |