summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Choina2018-06-28 08:32:47 -0400
committerSolomon Choina2018-06-28 08:32:47 -0400
commit32d29a3e7e2559d95d295c724a09b145bfd7c06b (patch)
tree0b99956e9e5b630bac991cfd88cfd279691ad061
downloadaur-32d29a3e7e2559d95d295c724a09b145bfd7c06b.tar.gz
initial commit
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD56
2 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..7f0a62739df
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = wayfire-git
+ pkgdesc = 3D wayland compositor
+ pkgver = r528.35d3f54
+ pkgrel = 1
+ url = https://github.com/ammen99/wayfire
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = meson
+ makedepends = ninja
+ makedepends = wayland-protocols
+ depends = wlroots-git
+ depends = cairo
+ depends = glm
+ depends = libjpeg
+ depends = gtk3
+ provides = wayfire
+ conflicts = wayfire
+ source = git+https://github.com/ammen99/wayfire#branch=wlroots
+ sha256sums = SKIP
+
+pkgname = wayfire-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..dda1a3194e1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Solomon Choina <shlomochoina@gmail.com>
+pkgname=wayfire-git
+pkgver=r528.35d3f54
+pkgrel=1
+pkgdesc="3D wayland compositor"
+arch=('x86_64')
+url="https://github.com/ammen99/wayfire"
+license=('MIT')
+depends=('wlroots-git' 'cairo' 'glm' 'libjpeg' 'gtk3')
+makedepends=('git' 'meson' 'ninja' 'wayland-protocols' )
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+replaces=()
+options=()
+source=('git+https://github.com/ammen99/wayfire#branch=wlroots')
+sha256sums=('SKIP')
+
+prepare() {
+ cd "$srcdir/wayfire"
+ git submodule update --init --recursive
+}
+pkgver() {
+ cd "$srcdir/wayfire"
+
+# Git, no tags available
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+
+}
+
+build() {
+ cd "$srcdir/wayfire/"
+ meson setup build \
+ --prefix /usr \
+ --libdir /usr/lib \
+ --libexecdir /usr/lib \
+ --bindir /usr/bin \
+ --sbindir /usr/bin \
+ --includedir /usr/include \
+ --datadir /usr/share \
+ --mandir /usr/share/man \
+ --infodir /usr/share/info \
+ --localedir /usr/share/locale \
+ --sysconfdir /etc \
+ --localstatedir /var \
+ --sharedstatedir /var/lib \
+ --buildtype release \
+ --wrap-mode default
+ ninja -C build
+}
+
+
+package() {
+ cd "$srcdir/wayfire"
+ DESTDIR="$pkgdir/" ninja -C build install
+ cp wayfire.ini.default $pkgdir/usr/share
+}