summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2015-06-10 05:46:34 -0600
committerBrian Bidulock2015-06-10 05:46:34 -0600
commit8ca31827d07e29f057734ecb0745f4e61fb9c82d (patch)
treef4dae535f28cdab96bc454c17aa07dd95d50ee8c
downloadaur-8ca31827d07e29f057734ecb0745f4e61fb9c82d.tar.gz
initial version
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD37
-rw-r--r--build.patch13
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9f5c754ab56
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = glasswm
+ pkgdesc = Small windowmanager forked from aewm++
+ pkgver = 0.9.0
+ pkgrel = 1
+ url = https://github.com/RiJo/glass
+ arch = x86_64
+ arch = i686
+ license = GPL
+ makedepends = gendesk>=0.6
+ makedepends = git
+ depends = gcc-libs
+ depends = libxext
+ source = glasswm::git+https://github.com/RiJo/glass.git
+ source = build.patch
+ md5sums = SKIP
+ md5sums = a9373dcb2b18869b3088f5ce3fae4b4e
+
+pkgname = glasswm
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..376f3b30ca8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Brian Bidulock <bidulock@openss7.org>
+
+pkgname=glasswm
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Small windowmanager forked from aewm++"
+arch=(x86_64 i686)
+url="https://github.com/RiJo/glass"
+license=('GPL')
+depends=('gcc-libs' 'libxext')
+makedepends=('gendesk>=0.6' 'git')
+source=("$pkgname::git+https://github.com/RiJo/glass.git"
+ build.patch)
+md5sums=('SKIP'
+ 'a9373dcb2b18869b3088f5ce3fae4b4e')
+
+prepare() {
+ gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --name Glass
+ gendesk -f -wm --pkgname "${pkgname}_kdm" --exec "$pkgname" --name Glass
+ cd $pkgname
+ patch -Np1 -b -z .orig -i ../build.patch
+}
+
+build() {
+ cd $pkgname
+ mkdir bin
+ make CCFLAGS="$CCFLAGS"
+}
+
+package() {
+ cd $pkgname
+ install -Dm755 "bin/glass" "$pkgdir/usr/bin/glass"
+ install -Dm644 "$srcdir/${pkgname}.desktop" \
+ "$pkgdir/usr/share/xsessions/${pkgname}.desktop"
+ install -Dm644 "$srcdir/${pkgname}_kdm.desktop" \
+ "$pkgdir/usr/share/apps/kdm/sessions/${pkgname}_kdm.desktop"
+}
diff --git a/build.patch b/build.patch
new file mode 100644
index 00000000000..b87a3dd4b07
--- /dev/null
+++ b/build.patch
@@ -0,0 +1,13 @@
+diff -up working/Makefile.orig working/Makefile
+diff -up working/src/glass.h.orig working/src/glass.h
+--- working/src/glass.h.orig 2015-01-07 18:50:25.000000000 -0700
++++ working/src/glass.h 2015-01-07 18:44:58.000000000 -0700
+@@ -10,6 +10,7 @@
+
+ #include "point.h"
+
++#include <unistd.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+diff -up working/src/windowmanager.h.orig working/src/windowmanager.h