summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraksr2015-07-31 10:06:01 +0200
committeraksr2015-07-31 10:06:01 +0200
commit5d84d66c34e1655f7055889e793d1178fc031553 (patch)
treed3a7c2210ea84e99d934443764d217a6ce3ebb52
downloadaur-5d84d66c34e1655f7055889e793d1178fc031553.tar.gz
Start.
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD51
-rw-r--r--config.h18
-rw-r--r--swm-git.install8
4 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b5fe95e34cb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = swm-git
+ pkgdesc = Simple window manager.
+ pkgver = 1.0.r9.g151f81e
+ pkgrel = 1
+ url = https://github.com/dcat/swm
+ install = swm-git.install
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ conflicts = swm
+ source = swm-git::git+https://github.com/dcat/swm
+ source = config.h
+ md5sums = SKIP
+ md5sums = 1f592cc09921d28966aaca86b710465a
+ sha1sums = SKIP
+ sha1sums = facc115b6f93d5e6356550235c3f5bffcb8d79ad
+ sha256sums = SKIP
+ sha256sums = 9f007a5a93c0a95c3cea521782f73f1438524b51cf3d27fb5a7482ba3e5ad9c4
+
+pkgname = swm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..06a5d6febd2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=swm-git
+pkgver=1.0.r9.g151f81e
+pkgrel=1
+epoch=
+pkgdesc="Simple window manager."
+arch=('i686' 'x86_64')
+url="https://github.com/dcat/swm"
+license=('MIT')
+groups=()
+depends=('')
+makedepends=('git')
+optdepends=()
+checkdepends=()
+provides=()
+conflicts=('swm')
+replaces=()
+backup=()
+options=()
+changelog=
+install=${pkgname}.install
+source=("$pkgname::git+https://github.com/dcat/swm"
+ 'config.h')
+noextract=()
+md5sums=('SKIP'
+ '1f592cc09921d28966aaca86b710465a')
+sha1sums=('SKIP'
+ 'facc115b6f93d5e6356550235c3f5bffcb8d79ad')
+sha256sums=('SKIP'
+ '9f007a5a93c0a95c3cea521782f73f1438524b51cf3d27fb5a7482ba3e5ad9c4')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g;s/^v//g'
+}
+
+prepare() {
+ cd "$srcdir/$pkgname"
+ cp ../config.h config.h
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ make DESTDIR="$pkgdir/" install
+}
+
diff --git a/config.h b/config.h
new file mode 100644
index 00000000000..e7302357ebc
--- /dev/null
+++ b/config.h
@@ -0,0 +1,18 @@
+#define MOD SUPER /* modifier for mouse resize and move */
+
+/* INNER + OUTER should not be greater than BORDERWIDTH */
+#define BORDERWIDTH 4 /* full border width */
+#define INNER 3 /* inner border width */
+#define OUTER 1 /* outer border width */
+
+/* colors */
+#define FOCUSCOL 0x18191A
+#define UNFOCUSCOL 0x111213
+#define OUTERCOL 0x000000
+
+/* resize and move by mouse? */
+#define ENABLE_MOUSE
+/* sloppy focus? */
+#define ENABLE_SLOPPY
+/* and double borders? */
+#define DOUBLE_BORDER
diff --git a/swm-git.install b/swm-git.install
new file mode 100644
index 00000000000..d9e88c377d5
--- /dev/null
+++ b/swm-git.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo "==> To customize it, modify \"config.h\"."
+}
+
+post_upgrade() {
+ post_install
+}
+