summaryrefslogtreecommitdiff
path: root/community/conkeror-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/conkeror-git/PKGBUILD')
-rw-r--r--community/conkeror-git/PKGBUILD62
1 files changed, 62 insertions, 0 deletions
diff --git a/community/conkeror-git/PKGBUILD b/community/conkeror-git/PKGBUILD
new file mode 100644
index 000000000..4bf03eb4f
--- /dev/null
+++ b/community/conkeror-git/PKGBUILD
@@ -0,0 +1,62 @@
+# Contributor: Heeru Kiyura <M8R-p9i5nh@mailinator.com>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
+_commit=34882281d19ff7ac8786f927b414e1af5afc9266
+pkgname=conkeror-git
+pkgver=0.9.3
+pkgrel=3
+pkgdesc="A highly programmable web browser based on Mozilla XULRunner."
+arch=('i686' 'x86_64')
+url="http://conkeror.mozdev.org/"
+license=('MPL' 'GPL' 'LGPL')
+depends=('bash' 'xulrunner')
+makedepends=('git' 'imagemagick')
+provides=(conkeror)
+source=("conkeror_gimpfile.xcf::http://conkeror.org/Artwork?action=AttachFile&do=get&target=conkeror_gimpfile.xcf" http://ftp.eenet.ee/gentoo-portage/www-client/conkeror/files/conkeror.desktop)
+md5sums=('04800c5e69ad82ab13e562261d701ecf'
+ 'cabe2d3de7e3ddad6268de711aa186ee')
+
+__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 -Dm755 $srcdir/${__gitname}-build/conkeror-spawn-helper \
+ $pkgdir/usr/bin/conkeror-spawn-helper
+ 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/conkeror.desktop \
+ $pkgdir/usr/share/applications/conkeror.desktop
+ ln -s /usr/share/conkeror/contrib/run-conkeror \
+ $pkgdir/usr/bin/conkeror
+ rm $pkgdir/usr/share/conkeror/conkeror-spawn-helper
+ rm -r $pkgdir/usr/share/conkeror/debian
+ install -d $pkgdir/usr/share/pixmaps
+ convert -composite $srcdir/conkeror_gimpfile.xcf \
+ $pkgdir/usr/share/pixmaps/conkeror.png
+}