diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-09-25 08:29:35 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-09-25 08:29:51 -0400 |
commit | f4387b437f6fc9dce864f5aa639bf1f5ddd98043 (patch) | |
tree | 28a81b62a662ac53837946c4ab05cc5cb4a3c5b8 /dist/archlinux/PKGBUILD | |
parent | 61e451ea1b36435341d02ae34548bd0ea3abdd57 (diff) | |
parent | 2330a6864373206a1359ec88bad2a8a714205e71 (diff) |
Merge branch 'master' into rootston
Diffstat (limited to 'dist/archlinux/PKGBUILD')
-rw-r--r-- | dist/archlinux/PKGBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dist/archlinux/PKGBUILD b/dist/archlinux/PKGBUILD new file mode 100644 index 00000000..a65fc7ff --- /dev/null +++ b/dist/archlinux/PKGBUILD @@ -0,0 +1,48 @@ +pkgname=wlroots +pkgver=r600.d89272d +pkgrel=1 +license=('MIT') +pkgdesc='Wayland compositor library' +makedepends=("meson") +depends=( + "wayland" + "wayland-protocols" + "mesa" + "libdrm" + "libinput" + "libxkbcommon" + "libsystemd" + "pixman" + "libxcb" +) +arch=("x86_64") +url="https://github.com/SirCmpwn/wlroots" +source=("${pkgname}::git+https://github.com/SirCmpwn/wlroots.git") +sha1sums=('SKIP') +provides=('wlroots') +conflicts=('wlroots') + +pkgver() { + cd "${srcdir}/${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + + meson build \ + --prefix=/usr \ + -Dbuildtype=debugoptimized \ + -Db_lto=True \ + -Denable-systemd=True \ + -Denable-elogind=False \ + -Denable-libcap=False + + ninja -C build +} + +package() { + cd "${srcdir}/${pkgname}" + + DESTDIR="${pkgdir}" ninja -C build install +} |