From 59eecef62ae9aa7dd391310f30293318f641c59c Mon Sep 17 00:00:00 2001 From: root Date: Thu, 18 Aug 2011 23:14:33 +0000 Subject: Thu Aug 18 23:14:33 UTC 2011 --- community/notion/PKGBUILD | 77 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 community/notion/PKGBUILD (limited to 'community/notion') diff --git a/community/notion/PKGBUILD b/community/notion/PKGBUILD new file mode 100644 index 000000000..f7bb06784 --- /dev/null +++ b/community/notion/PKGBUILD @@ -0,0 +1,77 @@ +# $Id: PKGBUILD 54370 2011-08-17 15:48:41Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: Eugen Zagorodniy e dot zagorodniy at gmail dot com +# Contributor: aunoor + +pkgname=notion +pkgver=20110817 +pkgrel=1 +pkgdesc="Tabbed tiling, window manager. Fork of Ion3" +url="http://sourceforge.net/projects/notion/" +arch=('i686' 'x86_64') +license=('custom:LGPL') +depends=('glib2' 'gettext' 'lua' 'libxext' 'libsm') +makedepends=('git' 'pkgconfig') +conflicts=('ion3') +provides=('libtu' 'libextl') +source=() + +_gitroot="git://notion.git.sourceforge.net/gitroot/notion/notion" +_gitname="notion" +_gitroot2="git://notion.git.sourceforge.net/gitroot/notion/libtu" +_gitname2="libtu" +_gitroot3="git://notion.git.sourceforge.net/gitroot/notion/libextl" +_gitname3="libextl" + +build() { + cd ${srcdir} + + msg "Connecting to the git repository..." + if [ -d ${srcdir}/${_gitname} ]; then + cd ${_gitname} + git pull origin + else + git clone --depth 1 ${_gitroot} + cd ${_gitname} + fi + + if [ -d ${srcdir}/${_gitname}/${_gitname2} ]; then + echo + git pull origin + else + git clone --depth 1 ${_gitroot2} + echo + fi + + if [ -d ${srcdir}/${_gitname}/${_gitname3} ]; then + echo + git pull origin + else + git clone --depth 1 ${_gitroot3} + echo + fi + + msg "GIT checkout done or server timeout" + + rm -rf ${srcdir}/${_gitname}-build + cp -r ${srcdir}/${_gitname} ${srcdir}/${_gitname}-build + + cd ${srcdir}/${_gitname}-build + + msg "Starting make..." + + sed -e 's/^\(PREFIX=\).*$/\1\/usr/' \ + -e 's/^\(ETCDIR=\).*$/\1\/etc\/notion/' \ + -e 's/^\(LUA_DIR=\).*$/\1\/usr/' \ + -e 's/^\(X11_PREFIX=\).*/\1\/usr/' \ + -i system.mk + + make INCLUDES=-I${srcdir}/${_gitname}-build +} + +package() { + cd ${srcdir}/${_gitname}-build + make PREFIX=${pkgdir}/usr ETCDIR=${pkgdir}/etc/notion install + mkdir -p ${pkgdir}/usr/share/licenses/notion + cp LICENSE ${pkgdir}/usr/share/licenses/notion +} -- cgit v1.2.3-54-g00ecf