summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRobert2015-12-26 21:16:34 +0100
committerRobert2015-12-26 21:16:34 +0100
commit46e3d9b17f8e41c1a708749a575bc6083e7c8ca5 (patch)
tree376c7c1b659ae210914ff65106d5fe9e74a04c29 /PKGBUILD
downloadaur-46e3d9b17f8e41c1a708749a575bc6083e7c8ca5.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD50
1 files changed, 50 insertions, 0 deletions
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
+}
+