summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD50
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..950ab219bde
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+# Generated by mksrcinfo v8
+# Sat Dec 26 20:07:37 UTC 2015
+pkgbase = flatman-git
+ pkgdesc = Tiling window manager written in D
+ pkgver = v1.0.0.r22.gf4fdbab
+ pkgrel = 1
+ url = https://github.com/weltensturm/flatman
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = dub
+ makedepends = dmd
+ depends = libxft
+ depends = libxrender
+ conflicts = flatman
+ source = flatman-git::git+https://github.com/weltensturm/flatman
+ sha256sums = SKIP
+
+pkgname = flatman-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..62924848acd
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: weltensturm <weltensturm at gmail dot com>
+
+_name=flatman
+pkgname=${_name}-git
+pkgver=v1.0.0.r22.gf4fdbab
+pkgrel=1
+pkgdesc="Tiling window manager written in D"
+arch=('i686' 'x86_64')
+url="https://github.com/weltensturm/flatman"
+license=('MIT')
+
+conflicts=('flatman')
+depends=('libxft' 'libxrender')
+makedepends=('dub' 'dmd')
+
+source=("$pkgname"::'git+https://github.com/weltensturm/flatman')
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$pkgname"
+ git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "$pkgname"
+ dub build --build=release
+ cd compositor
+ dub build --build=release
+ cd ../dock
+ dub build --build=release
+ cd ../menu
+ dub build --build=release
+ cd ../volume-icon
+ dub build --build=release
+}
+
+check() {
+ cd "$pkgname"
+}
+
+package() {
+ cd "$pkgname"
+ install -D -m655 flatman ${pkgdir}/usr/bin/flatman
+ install -D -m655 compositor/flatman-compositor ${pkgdir}/usr/bin/flatman-compositor
+ install -D -m655 dock/flatman-dock ${pkgdir}/usr/bin/flatman-dock
+ install -D -m655 menu/flatman-menu ${pkgdir}/usr/bin/flatman-menu
+ install -D -m655 volume-icon/flatman-volume-icon ${pkgdir}/usr/bin/flatman-volume-icon
+ install -D -m644 res/flatman.desktop ${pkgdir}/usr/share/xsessions/flatman.desktop
+}
+