]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
initial version
authorBrian Bidulock <bidulock@openss7.org>
Thu, 9 Jul 2015 05:31:40 +0000 (23:31 -0600)
committerBrian Bidulock <bidulock@openss7.org>
Thu, 9 Jul 2015 05:31:40 +0000 (23:31 -0600)
.SRCINFO [new file with mode: 0644]
PKGBUILD [new file with mode: 0644]
dwm.desktop [new file with mode: 0644]
dwm.install [new file with mode: 0644]

diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644 (file)
index 0000000..d51809c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = dwm-git
+       pkgdesc = A dynamic window manager for X
+       pkgver = 6.0.43.g14343e6
+       pkgrel = 1
+       epoch = 1
+       url = http://dwm.suckless.org
+       install = dwm.install
+       arch = i686
+       arch = x86_64
+       license = MIT
+       makedepends = git
+       depends = libx11
+       depends = libxinerama
+       provides = dwm
+       conflicts = dwm
+       options = zipman
+       source = dwm.desktop
+       source = dwm::git+http://git.suckless.org/dwm
+       md5sums = 939f403a71b6e85261d09fc3412269ee
+       md5sums = SKIP
+
+pkgname = dwm-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644 (file)
index 0000000..03f94b8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,43 @@
+pkgname=dwm-git
+_pkgname=dwm
+pkgver=6.0.43.g14343e6
+pkgver(){
+  cd $_pkgname
+  git describe --tags |sed 's/-/./g'
+}
+pkgrel=1
+pkgdesc="A dynamic window manager for X"
+url="http://dwm.suckless.org"
+arch=('i686' 'x86_64')
+license=('MIT')
+options=(zipman)
+depends=('libx11' 'libxinerama')
+makedepends=('git')
+install=dwm.install
+provides=('dwm')
+conflicts=('dwm')
+epoch=1
+source=(dwm.desktop
+        "$_pkgname::git+http://git.suckless.org/dwm")
+md5sums=('939f403a71b6e85261d09fc3412269ee'
+         'SKIP')
+
+prepare() {
+  if [[ -f $SRCDEST/config.h ]]; then
+    cp $SRCDEST/config.h $srcdir/dwm/config.h
+  fi
+}
+
+build() {
+  cd $_pkgname
+  make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
+}
+
+package() {
+  make -C $_pkgname PREFIX=/usr DESTDIR=$pkgdir install
+  install -m644 -D $_pkgname/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+  install -m644 -D $_pkgname/README $pkgdir/usr/share/doc/$pkgname/README
+  install -m644 -D $srcdir/dwm.desktop $pkgdir/usr/share/xsessions/dwm.desktop
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/dwm.desktop b/dwm.desktop
new file mode 100644 (file)
index 0000000..b0c3354
--- /dev/null
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Dwm
+Comment=Dynamic window manager
+Exec=dwm
+Icon=dwm
+Type=XSession
diff --git a/dwm.install b/dwm.install
new file mode 100644 (file)
index 0000000..44b50ed
--- /dev/null
@@ -0,0 +1,4 @@
+post_install() {
+  echo "-- Edit config.h in dwm's PKGBUILD directory (generally /var/abs/community/dwm/)"
+  echo "-- and rebuild package if you want to change settings."
+}