Smith Dhumbumroong avatar Smith Dhumbumroong committed ead32e2

Add obconf-git package.

Comments (0)

Files changed (2)

obconf-git/PKGBUILD

+# $Id: PKGBUILD 49029 2011-06-09 21:05:36Z andrea $
+# Maintainer:
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Tobias Kieslich <tobias@archlinux.org>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+
+pkgname=obconf-git
+pkgver=20110816
+pkgrel=1
+pkgdesc="A GTK2 based configuration tool for the Openbox windowmanager (Development version)"
+arch=('i686' 'x86_64')
+url="http://icculus.org/openbox/index.php/ObConf:About"
+license=('GPL')
+depends=('openbox' 'gtk2' 'libglade' 'desktop-file-utils' 'libsm')
+provides=('obconf')
+conflicts=('obconf')
+install=${pkgname}.install
+source=(http://icculus.org/openbox/mw/images/8/80/Obconf-72.png)
+md5sums=('340ae4732e76731d2838473541eb8d4e')
+
+_gitroot=git://git.openbox.org/dana/obconf
+_gitname=obconf
+
+build() {
+  cd "$srcdir"
+  msg "Connecting to GIT server...."
+
+  if [[ -d "$_gitname" ]]; then
+    cd "$_gitname" && git pull origin
+    msg "The local files are updated."
+  else
+    git clone "$_gitroot" "$_gitname"
+  fi
+
+  msg "GIT checkout done or server timeout"
+  msg "Starting build..."
+
+  rm -rf "$srcdir/$_gitname-build"
+  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+  cd "$srcdir/$_gitname-build"
+  # Update to the last commit that built cleanly against
+  # OpenBox 3.5.
+  git checkout 500163e2c74cbbded0361574fd14d0a1168c1119
+
+  #
+  # BUILD HERE
+  #
+  ./bootstrap
+  ./configure --prefix=/usr
+  make
+  sed -i 's/=openbox/=obconf/' obconf.desktop
+}
+
+package() {
+  cd "${srcdir}/$_gitname-build"
+
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 ../Obconf-72.png \
+    "${pkgdir}"/usr/share/pixmaps/obconf.png
+}

obconf-git/obconf-git.install

+post_install() {
+    update-desktop-database -q
+    update-mime-database /usr/share/mime 1> /dev/null
+}
+
+post_upgrade() {
+  post_install
+}
+
+post_remove() {
+  post_install
+}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.