From 0e49718a132f04a44c677d0ae904bf31028a2d2e Mon Sep 17 00:00:00 2001 From: Adrian Perez de Castro Date: Mon, 29 Jan 2018 19:23:12 +0000 Subject: [PATCH] Initial import --- .SRCINFO | 26 ++++++++++++++++++++++++++ .gitignore | 5 +++++ PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 .SRCINFO create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..b8f5004 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = wlroots-git + pkgdesc = Modular Wayland compositor library + pkgver = r1744.60b2d96 + pkgrel = 1 + url = https://github.com/swaywm/wlroots + arch = x86_64 + license = custom:MIT + makedepends = meson + makedepends = ninja + depends = libcap + depends = systemd + depends = wayland + depends = opengl-driver + depends = libxcb + depends = xcb-util-image + depends = xcb-util-wm + depends = pixman + depends = libinput + depends = libxkbcommon + provides = wlroots + conflicts = wlroots + source = wlroots-git::git+https://github.com/swaywm/wlroots + sha512sums = SKIP + +pkgname = wlroots-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ee99d1c --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/wlroots-git/ +/pkg/ +/src/ +*.pkg.tar +*.pkg.tar.* diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..01c51c0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Adrian Perez de Castro +pkgname='wlroots-git' +pkgver=r1744.60b2d96 +pkgrel=1 +license=('custom:MIT') +pkgdesc='Modular Wayland compositor library' +url='https://github.com/swaywm/wlroots' +arch=('x86_64') +provides=('wlroots') +conflicts=('wlroots') +depends=('libcap' 'systemd' 'wayland' 'opengl-driver' 'libxcb' + 'xcb-util-image' 'xcb-util-wm' 'pixman' 'libinput' + 'libxkbcommon') +makedepends=('meson' 'ninja') +source=("${pkgname}::git+${url}") +sha512sums=('SKIP') + + +pkgver () { + cd "${pkgname}" + ( + set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^version\.//' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build () { + cd "${pkgname}" + rm -rf build + meson build \ + --prefix /usr \ + -Denable_xwayland=true \ + -Denable_libcap=true \ + -Denable_systemd=true \ + -Denable_elogind=false + ninja -C build +} + +package () { + cd "${pkgname}" + DESTDIR="${pkgdir}" ninja -C build install + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}