aboutsummaryrefslogtreecommitdiff
path: root/dist/archlinux/PKGBUILD
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-24 08:08:10 -0400
committerGitHub <noreply@github.com>2017-09-24 08:08:10 -0400
commit2330a6864373206a1359ec88bad2a8a714205e71 (patch)
treeabc84d9b90aa444cc384e10e81185a8074339208 /dist/archlinux/PKGBUILD
parentd89272dbbd87ebe1b8cbadf3a9c28552cc530eea (diff)
parent91107f553a477c6eb49588bb04c2c71b7bf83e08 (diff)
Merge pull request #159 from ascent12/meson-install
Install files with meson
Diffstat (limited to 'dist/archlinux/PKGBUILD')
-rw-r--r--dist/archlinux/PKGBUILD48
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
+}