diff options
author | root <root@rshg047.dnsready.net> | 2011-07-17 23:11:47 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-07-17 23:11:47 +0000 |
commit | ddddf9c453076a407bfdbf3e030e606f31ee2b86 (patch) | |
tree | e836f8617981c56d8e16fa5fb285afe5563befd2 /community/conkeror-git/PKGBUILD | |
parent | 7500119d8dd5fc921f91aac8222e472477973740 (diff) |
Sun Jul 17 23:11:47 UTC 2011
Diffstat (limited to 'community/conkeror-git/PKGBUILD')
-rw-r--r-- | community/conkeror-git/PKGBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/community/conkeror-git/PKGBUILD b/community/conkeror-git/PKGBUILD new file mode 100644 index 000000000..4eeae1f71 --- /dev/null +++ b/community/conkeror-git/PKGBUILD @@ -0,0 +1,58 @@ +# Contributor: Heeru Kiyura <M8R-p9i5nh@mailinator.com> +# Maintainer: Stefan Husmann <stefan-husmann@t-online.de> + +_commit=5b74557e78bb16af6dabf72e9499e02ece5ae2be +pkgname=conkeror-git +pkgver=0.9.3 +pkgrel=8 +pkgdesc="A highly programmable web browser based on Mozilla XULRunner." +arch=('i686' 'x86_64') +url="http://conkeror.mozdev.org/" +license=('MPL' 'GPL' 'LGPL') +depends=('xulrunner' 'desktop-file-utils') +makedepends=('git' 'imagemagick') +provides=(conkeror) +source=(conkeror_gimpfile.xpm conkeror.sh) +md5sums=('b592582a5b923db1707615564a95737f' + 'c8c2a1e54312fc504cbf868d55446e35') +install=conkeror-git.install + +__gitroot="git://repo.or.cz/conkeror.git" +__gitname="conkeror" + +build() { + cd $srcdir + + ## Git checkout + if [ -d $srcdir/${__gitname} ] ; then + msg "Git checkout: Updating existing tree" + cd ${__gitname} && git checkout ${_commit} + msg "Git checkout: Tree has been updated" + else + msg "Git checkout: Retrieving sources" + git clone ${__gitroot} && cd ${__gitname} && git checkout ${_commit} + fi + msg "Checkout completed" + + ## Build + [ -d ${__gitname}-build ] || rm -rf $srcdir/${__gitname}-build + git clone $srcdir/${__gitname} $srcdir/${__gitname}-build + cd $srcdir/${__gitname}-build + make +} + +package() { + cd $srcdir/${__gitname}-build + install -d $pkgdir/usr/share/conkeror + install -d $pkgdir/usr/share/man/man1 + cp -a $srcdir/${__gitname}-build/* $pkgdir/usr/share/conkeror + install -Dm644 $pkgdir/usr/share/conkeror/contrib/man/conkeror.1 \ + $pkgdir/usr/share/man/man1/conkeror.1 + rm -r $pkgdir/usr/share/conkeror/contrib/man + install -Dm644 $srcdir/${__gitname}-build/debian/conkeror.desktop \ + $pkgdir/usr/share/applications/conkeror.desktop + rm -r $pkgdir/usr/share/conkeror/debian + install -d $pkgdir/usr/share/pixmaps + install -Dm644 $srcdir/conkeror_gimpfile.xpm $pkgdir/usr/share/pixmaps + install -Dm755 $srcdir/conkeror.sh $pkgdir/usr/bin/conkeror +} |