From 0373ecd789d0e86287ee58cd0863bb26cb79f350 Mon Sep 17 00:00:00 2001
From: Ypnose <linuxien@legtux.org>
Date: Mon, 29 Jul 2013 17:14:21 +0200
Subject: [PATCH] New package: bar-git-20132907

---
 srcpkgs/bar-git/files/config.h | 28 ++++++++++++++++++++++++++++
 srcpkgs/bar-git/template       | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 srcpkgs/bar-git/files/config.h
 create mode 100644 srcpkgs/bar-git/template

diff --git a/srcpkgs/bar-git/files/config.h b/srcpkgs/bar-git/files/config.h
new file mode 100644
index 00000000000..1532fdc7a9b
--- /dev/null
+++ b/srcpkgs/bar-git/files/config.h
@@ -0,0 +1,28 @@
+/* The height of the bar (in pixels) */
+#define BAR_HEIGHT  18
+/* The width of the bar. Set to -1 to fit screen */
+#define BAR_WIDTH   -1
+/* Offset from the left. Set to 0 to have no effect */
+#define BAR_OFFSET 0
+/* Choose between an underline or an overline */
+#define BAR_UNDERLINE 1
+/* The thickness of the underline (in pixels). Set to 0 to disable. */
+#define BAR_UNDERLINE_HEIGHT 2
+/* Default bar position, overwritten by '-b' switch */
+#define BAR_BOTTOM 0
+/* The fonts used for the bar, comma separated. Only the first 2 will be used. */
+#define BAR_FONT       "-*-terminus-medium-r-normal-*-12-*-*-*-c-*-*-1","fixed"
+/* Some fonts don't set the right width for some chars, pheex it */
+#define BAR_FONT_FALLBACK_WIDTH 6
+/* Color palette */
+#define COLOR0  0x1A1A1A /* background */
+#define COLOR1  0xA9A9A9 /* foreground */
+#define COLOR2  0x303030
+#define COLOR3  0xF92672
+#define COLOR4  0xA6E22E
+#define COLOR5  0xFD971F
+#define COLOR6  0x66D9EF
+#define COLOR7  0x9E6FFE
+#define COLOR8  0xAF875F
+#define COLOR9  0xCCCCC6
+
diff --git a/srcpkgs/bar-git/template b/srcpkgs/bar-git/template
new file mode 100644
index 00000000000..41b36a3d50c
--- /dev/null
+++ b/srcpkgs/bar-git/template
@@ -0,0 +1,34 @@
+# Template file for 'bar-git'
+pkgname=bar-git
+version=20132907
+revision=1
+makedepends="libxcb-devel"
+short_desc="A lightweight xcb based bar"
+maintainer="Ypnose <linuxienATlegtuxDOTorg>"
+license="MIT"
+homepage="https://github.com/LemonBoy/bar"
+
+nofetch=yes
+noextract=yes
+
+do_fetch() {
+	local url="git://github.com/LemonBoy/bar"
+	msg_normal "Fetching source from $url ...\n"
+	git clone ${url} ${pkgname}-${version}
+}
+
+do_build() {
+	cp ${FILESDIR}/config.h config.h
+	make CC=$CC INCS="-I." ${makejobs}
+}
+
+do_install() {
+	make PREFIX=/usr DESTDIR=$DESTDIR install
+	vinstall LICENSE 644 usr/share/licenses/$pkgname
+}
+
+bar-git_package() {
+	pkg_install() {
+		vmove usr
+	}
+}